#
function cvtDateTime(s)
{
yday = substr(s,7,2)*365 + substr(s,4,2) - 1;
y = substr(s,7,2);
if ( y < 50) y += 100;
yday = y*365 + substr(s,4,2) - 1;
mon = substr(s,0,2) + 0;
for (i = 0; i < mon; i++)
yday += daysInMonth[i];