esthera
07-08-2007, 05:27 PM
How can I format a date in php to be 07/08/2007?
|
||||
php format dateesthera 07-08-2007, 05:27 PM How can I format a date in php to be 07/08/2007? rafiki 07-08-2007, 06:25 PM check out the date (http://www.php.net/date) function esthera 07-08-2007, 06:27 PM i couldn't figure that out i have date $mydate -- in format of mysql - how can i format that to mm/dd/yyyy CFMaBiSmAd 07-08-2007, 06:47 PM If your date is comming from a database, use the mysql DATE_FORMAT() function - http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_date-format - in your SELECT query to format it the way you want. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum