Thanks Nate

Charlie
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Althoff
Sent: 20 November 2007 16:30
To: [email protected]
Subject: RE: [php_mysql] New to dates in PHP

set it to a variable and it should be ok:

$now = strtotime("now");

from there you can format it however you want:

echo date("F j, Y",$now);

php.net/date will give you the different masks for the date() function.

Reply via email to