This function only works with php5. I had trouble when I was working with php4. This seems to work:
$formatteddate = strftime("%b %d, %Y", strtotime($yourdate));
This will give you result like Sep 06, 2007
![]() |
|
||||||||||
|
date_formatОписаниеstring date_format ( DateTime object, string format )string DateTime::format ( string format ) date_format
anju
07-Sep-2007 12:26
This function only works with php5. I had trouble when I was working with php4. This seems to work:
zardiw
01-Sep-2007 10:53
I don't see the point of creating a function that is essentially a copy of the existing date_format function....lol.....z
muthuishere at gmail dot com
13-Jul-2007 05:55
You can format Date by using the below function
Matt Walsh
04-May-2007 10:43
The ISO8601 output format doesn't jive with (at least) what eBay expects in its SOAP transactions. eBay wants a UTC time with a 'Z' suffix. That is, eBay (and I'm guessing other web services) will accept "2007-05-04T17:01:17Z" but not "2007-05-04T17:01:17+0000". As it is, the built-in DateTime::ISO8601 format uses the +0000 timezone specifier even when in a UTC timezone. |