Re: Date Formatting

From: Date: Thu, 23 Sep 2004 09:03:50 +0000
Subject: Re: Date Formatting
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-24638@lists.php.net to get a copy of this message
Have you looked at the strtotime() function? Off the top of my head, it should look a bit like this: $out = date ("m/d/Y", strtotime ("Sep 12 2004 2:16AM")); HTH, Mikey ----- Original Message ----- From: "Ron Herhuth" <Ron.Herhuth@tatumpartners.com> Newsgroups: php.windows To: <php-windows@lists.php.net> Sent: Wednesday, September 22, 2004 2:12 PM Subject: 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 (#24638) next »