Within a database table I have an entry for Brian Lara with a date of birth of 1969-05-02.
I go to print it as follows:
$DOB = $myrow["DOB"];
echo date("d M Y",mktime(0, 0, 0, substr($DOB,5,2), substr($DOB,8,2),substr($DOB,0,4)));
and it comes out as 31 Dec 1969.
Any ideas why? I have hundreds of other dates converting fine but it just seems to affect this one :confused:
