worked great... the other method may be a little quicker, but this code is easier for me to understand, and although it is used in a loop there really is no visible difference in how quickly it displays.
thanks, Jeff "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > on 05/12/02 11:15 AM, Justin French ([EMAIL PROTECTED]) wrote: > > > Hi, > > > > <? > > $date = '2002-12-04 23:21:49'; > > $newdate = date('m/d/Y', strtotime($date)); > > echo $newdate; > > ?> > > Whooops, forgot the time bit! > > Should be > > <? > $date = '2002-12-04 23:21:49'; > $newdate = date('n/j/Y g:i:s a', strtotime($date)); > echo $newdate; > ?> > > echo's 12/4/2002 11:21:49 pm > > also fixed the leading zero's problem :) > > > Justin French > -------------------- > http://Indent.com.au > Web Development & > Graphic Design > -------------------- > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php