|
Posted by Chuck Anderson on 10/25/05 23:14
NC wrote:
>voipcanada wrote:
>
>
>>need to know how to change Mon Oct 24 00:00:26 2005 as 2005-10-24
>>00:00:26
>>
>>
>
>date('Y-m-d H:m:s', strtotime('Mon Oct 24 00:00:26 2005'))
>
>Cheers,
>NC
>
I wasn't aware of this shortcut. I think I'll switch to this method for
converting times from my apache server access logs.
However, you meant:
echo date('Y-m-d H:i:s', .....
not
echo date('Y-m-d H:m:s', .....
(i for minutes, not m)
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Navigation:
[Reply to this message]
|