RE: Subtracting dates w/o database interaction (MySQL)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Philip Thompson <mailto:prthomp@xxxxxxxx>
    on Friday, September 23, 2005 9:12 AM said:

> I'm needing to find the number of days between two dates without
> using an database functions (DATE_SUB, etc)... only PHP. Is there an
> easy way to accomplish this? I have searched the PHP site, but have
> not been successful in finding anything that will assist me.
> 
> Any help would be appreciated.

There might be an easier way but... convert to timestamp, subtract
smaller number from bigger number, figure out how much time has passed.



Chris.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux