note 7911 deleted from date by ronabop
| From: | ronabop@php.net | Date: | Sun, 20 Aug 2000 11:37:25 +0000 |
| Subject: | note 7911 deleted from date by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2778@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