This HAS to be the most simple question but I can't see it
$dstring is "20021025" from
$darray[$idx++] = substr($record[0],0,8)
where $record is the return from mysql_query and element [0] is a Date.
Why, when I:
echo date("l, jS F Y", $darray[$idx])
do I get:
Thursday, 20th August 1970
and not Friday, 25th October 2002 ?
Do I need to cast the string - and if so, how?