Results 1 to 19 of 19

Thread: Date Problem *RESOLVED*

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2003
    Posts
    126

    Resolved 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
  •  



Click Here to Expand Forum to Full Width