Re: Date problem

From: Date: Mon, 23 Jun 2003 21:13:35 +0000
Subject: Re: Date problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152536@lists.php.net to get a copy of this message
>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, That's a timestamp - it's the number of seconds since the Unix Epoch (1/1/1970 GMT), and you can read up about conversion here: php.net/date --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html

« previous php.general (#152536) next »