RE: [PHP] Date formating

2003-02-15 Thread David Freeman
> 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/t

Re: [PHP] Date formating

2003-02-15 Thread Justin French
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 stamp, which is what date() needs to work. All this is available in the manu

Re: [PHP] Date formating

2003-02-15 Thread Jason Wong
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