[PHP] RE: [PHP-DB] Help with date
Well... 1 day = 60*60*24 = 86400 You figure it out from there :) Just one example. Aaron -Original Message- From: Dankshit [mailto:[EMAIL PROTECTED]] Sent: November 28, 2002 12:06 PM To: PHP; PHP1 Subject: [PHP-DB] Help with date How can i add days to a date?? Equipe Pratic Sistemas Rodrigo CorrĂȘa Fone: (14) 441-1700 [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [PHP-DB] Help with Date
> 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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DB] Help with Date
Rodrigo, 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 =Check out UNIX timestamps (but watch the valid date range), =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php