RE: [PHP] Time stamp and changing to a date.

From: Date: Fri, 28 Mar 2003 11:57:17 +0000
Subject: RE: [PHP] Time stamp and changing to a date.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141421@lists.php.net to get a copy of this message
> $mydate = "20030328231154"; > > $myPrintDate=date ("l dS of F Y h:i:s A",$mydate); > > echo "$myPrintDate"; > > Whats wrong $mydate should be a unix style timestamp not a YYYYMMDDHHMMSS type date/time format... Check the functions time() and mktime() to help you generate unix timestamps. HTH Rich

« previous php.general (#141421) next »