Re: Date formating

From: Date: Sat, 15 Feb 2003 09:17:23 +0000
Subject: Re: Date formating
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135641@lists.php.net to get a copy of this message
<? 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 stamp, which is what date() needs to work. All this is available in the manual of course :) Justin on 15/02/03 7:56 PM, Dhaval Desai (da_linuxguru@hotmail.com) 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. > > -Dhaval > > > > > > _________________________________________________________________ > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > http://join.msn.com/?page=features/virus >

« previous php.general (#135641) next »