RE: [PHP-DB] Help with Date

From: Date: Fri, 22 Nov 2002 01:38:19 +0000
Subject: RE: [PHP-DB] Help with Date
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-db+get-23582@lists.php.net to get a copy of this message
> Is there a way to convert a date " 20/11/2002 " to a Float number in PHP, > since the date starts in 30/12/1899, just like the delphi treats the > dates.... Yeah, of course. To convert "20/11/2002" into a float, just do echo (float)"20/11/2002"; and you get 20!! Or you can use strtotime() to convert it to a Unix timestamp (integer, number of seconds since Jan 1, 1970). ---John Holmes...

« previous php.db (#23582) next »