|
-
Jan 21st, 2005, 04:33 PM
#1
Thread Starter
Lively Member
Format PHP Date
I save dates to the database in the following format - "1979-12-28"
When displaying them on the website I want to display it as "28 Dec 1979" so I tried this:
echo "Born:" . date("d M Y",$myrow["DOB"]) . "<br>";
but that converts "1979-12-28" to "Born:31 Dec 1969"
What am I doing wrong?
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
|