|
-
Aug 28th, 2006, 01:47 PM
#1
Thread Starter
Fanatic Member
PHP5 Date problem
is there a special way of handling date in PHP5?
in PHP4.4.1, if i have this 03/17/2004 and format it with the strtotime() function, it outputs something like Monday, March 17, 2004 but when i switched to PHP5 the same date format will output some date in 1969.
pls note that date format is mm/dd/yyyy
what do i do?
Last edited by modpluz; Aug 28th, 2006 at 01:55 PM.
-
Aug 28th, 2006, 02:54 PM
#2
Re: PHP5 Date problem
Works fine for me:
http://webloc.windmuehlgasse.getdesigned.at/test.php
Code:
echo date('l dS F Y h:i:s A', strtotime('03/17/2004'));
PHP 5.1.4
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|