Re: date

From: Date: Thu, 02 May 2002 19:25:08 +0000
Subject: Re: date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95744@lists.php.net to get a copy of this message
On Friday 03 May 2002 03:17, Norman Zhang wrote: > Hi, > > I am doing a test with the date function, > > $mydate="2002-05-02" > $tdate=date("d M Y", "$mydate"); > echo "$tdate" > > I should expect 02 May 2002. But I get a strange result "31 Dec 1969". Why? > How can I correct this? Please RTFM, date() takes a timestamp for the 2nd argument. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* NEWARK has been REZONED!! DES MOINES has been REZONED!! */

« previous php.general (#95744) next »