|
-
Apr 25th, 2005, 05:17 AM
#1
Thread Starter
Lively Member
Date Problem *RESOLVED*
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
Last edited by JamesNZ; Apr 27th, 2005 at 03:26 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|