Hi,
I have a string in this format:
2003-02-15 13:19:02
I want to display it in a more readable format like Staurday, 11 Februardy,
2003, 13:19:02. How can I achieve that. I tried date() function but could
not get what I wanted.
-Dhaval
On Saturday 15 February 2003 16:56, Dhaval Desai wrote:
Hi,
I have a string in this format:
2003-02-15 13:19:02
I want to display it in a more readable format like Staurday, 11 Februardy,
2003, 13:19:02. How can I achieve that. I tried date() function but could
not get what I wanted.
?
echo date('the format you want', strtotime('2003-02-15 13:19:02'));
?
In this case 'the format you want' is 'l, d F, Y. H:i:s', but you should be
able to look it up in the manual for yourself. php.net/date
strtotime('2003-02-15 13:19:02') SHOULD work, converting the string to a
unix time
I have a string in this format:
2003-02-15 13:19:02
I want to display it in a more readable format like
Staurday, 11 Februardy,
2003, 13:19:02. How can I achieve that. I tried date()
function but could
not get what I wanted.
The date format above is a standard mysql date/time
4 matches
Mail list logo