Ask a Question related to Dreamweaver AppDev, Design and Development.
-
erickia #1
PHP date format
Accoding to the manual, if I want to display the a date in the format "May
31st, 2005 I should use the following code:
<p> The event will held on <?php date(' F jS Y', eventdate)?></p>
But no matter how I type in the event date, "05/31/2005" what displays is
"December 31st, 1969" I've tried "2005-05-31," "2005-05-31 00-00-00" and
about 20 other combinations. Can anyone tell me the correct format?
erickia Guest
-
Date Format
I have a form with an unbound combo box which contains a list of choices: "Current Month";"Previous Month";"Current Year", etc. When the user... -
Format a date
My database stores the date as mm/dd/yyyy How can I return this in the format of say: Tuesday- December 21, 2005 -
Date Format pb
Hi, Got a pb with american date format MM/dd/YYYY. My WebService Method convert String to Date. It works good except for one case : 1/5/2005 ... -
Date() Format
Hi Im trying to get a mm/dd/ccyy format and can nearly do this using date() however I for 02 Feb 2004 I get 2/2/2004 and I want 02/02/2004 -
converting date into database date format(newbie)
Hi! U can convert "8-Aug-03" into mysql date which requires yyyy-mm-dd format as below. <?php date("Y-m-d",strtotime("8-Aug-03")); ?> -
erickia #2
Re: PHP date format
Found the answer. strtotime($eventdate) does the trick.
erickia Guest
-
Michael Fesser #3
Re: PHP date format
.oO(erickia)
JFTR: The reason is that the date() function expects the date in Unix>Found the answer. strtotime($eventdate) does the trick.
timestamp format. strtotime() helps: it accepts many different date
formats and converts them to timestamps.
Be aware that Unix timestamps are restricted in range, usually something
between 1970-2038. Dependent on the dates you want to store this could
become a problem.
Micha
Michael Fesser Guest



Reply With Quote

