gdate);
$newdate = Date("m/d/Y",mktime(0,0,0,$months[$textmonth],$day,$year);
?>
But that's just one way to skin this cat.
-TG
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 22, 2004 9:13 AM
> To: [
ot;;
List($textmonth,$day,$year,$time) = explode(" ",$origdate);
$newdate = Date("m/d/Y",mktime(0,0,0,$months[$textmonth],$day,$year);
?>
But that's just one way to skin this cat.
-TG
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMA
22, 2004 9:13 AM
To: [EMAIL PROTECTED]
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
4 9:13 AM
To: [EMAIL PROTECTED]
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)
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