RE: [PHP-WIN] Date Formatting

From: Date: Wed, 22 Sep 2004 14:15:54 +0000
Subject: RE: [PHP-WIN] Date Formatting
Groups: php.windows 
Request: Send a blank email to php-windows+get-24624@lists.php.net to get a copy of this message
You are looking for the strtotime() function. $original_date = "Sep 12 2004 2:16AM"; $reformat = date ( "m/d/Y" , strtotime ($original_date) ); echo $reformat; John -----Original Message----- From: Ron.Herhuth@tatumpartners.com [mailto:Ron.Herhuth@tatumpartners.com] Sent: Wednesday, September 22, 2004 9:13 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Date Formatting I see in the manual about how to format the current date using the date() function...but my question is...I have the date in this format: Sep 12 2004 2:16AM And I needed it formatted as: 09/12/2004 (I don't need the time) How do I go about doing that? Thanks, Ron

« previous php.windows (#24624) next »