RE: [PHP] Date problem

From: Date: Mon, 23 Jun 2003 22:46:33 +0000
Subject: RE: [PHP] Date problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152551@lists.php.net to get a copy of this message
Hi, That looks like a unix timestamp. Try this: Echo date("Y/m/d h:i:s", "1056044640"); www.php.net/date Check that link to see the lettering codes and the syntax, I might be off on what I typed up there, but you'll get the concept. -Dan Joseph -----Original Message----- From: Logan McKinley [mailto:logan@globalweb.net] Sent: Monday, June 23, 2003 5:06 PM To: php-general@lists.php.net Subject: [PHP] Date problem I am storing dates in an Access database in a field with a "Date/Time" Type the date is being generated using date("n/d/Y h:i a"). It appears to be stored in Access correctly but when I output it to the page using PHP it seems to be changing. It is being stored in the database as "6/19/2003 1:44:00 PM" but being displayed on the page as "1056044640" Thanks in advance, ~Logan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#152551) next »