note 7911 added to date

From: Date: Sat, 19 Aug 2000 13:22:27 +0000
Subject: note 7911 added to date
Groups: php.notes 
Request: Send a blank email to php-notes+get-2653@lists.php.net to get a copy of this message
Hey guys... I work with a server like w2k - MSSQL 7 - IIS 5 - PHP3 and 4 when I make a query on my MSSQL Base for a date field $mydate, the result is $mydate = "Oct 19 2001 12:00AM". The field in the table is a datetime and I cannot use the date function like this $toto=date("d-m-Y",$mydate) because the result is always $toto = "01-01-1970". Why ? What should I do if I want the return of MSSQL to be a good timestamp or maybe should I use the date() function differently??? thx http://www.php.net/manual/function.date.php

« previous php.notes (#2653) next »