RE: [PHP-DB] Y2K date

From: Date: Wed, 18 Oct 2000 17:37:19 +0000
Subject: RE: [PHP-DB] Y2K date
References: 1  Groups: php.db php.windows 
Request: Send a blank email to php-db+get-3743@lists.php.net to get a copy of this message
What was $DateN before you tried to modify it? -- Troy Settle Pulaski Networks 540.994.4254 It's always a long day, 86400 doesn't fit into a short > -----Original Message----- > From: CESBRON S. [mailto:scesbron@escna.fr] > Sent: Tuesday, October 17, 2000 4:13 AM > To: php-windows@lists.php.net > Cc: php-DB@lists.php.net > Subject: [PHP-DB] Y2K date > > > Hi everybody, > > I'm getting trouble with date usage. I've got a database with a date field > in it. This date is for example set up to 01/01/2000. I wanted to display > it, and before doing such a task, I had to reformat it with the usage of > the date function. > > Here is my code : > $DateN = date("d/m/Y",$DateN); > > echo "$DateN"; > > Here's what I get : > > 01/01/1970 > > > Is anyone aware of this ? > What can I do ? > > Any suggestions will be greatly appreciated. > > Thanks > Stéphane > Stéphane Cesbron > Chargé du développement Internet/Intranet > > AUDENCIA > Nantes.Ecole de Management > 8 route de la Jonelière > B.P. 31222 > 44312 Nantes Cedex 3 > Tél : 02.40.37.34.47 > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#3743) next »