On Thu, Oct 02, 2003 at 01:36:04PM +0100, bob pilly wrote: : : Does anyone know if there is a date difference function in php? I have : searched the manual but found none. What im after is a function that : will return the number of days or seconds between a start date and a : second date. Much like DATEDIFF in ms sql. Any help or pointing to : relevant docs would be greatly appreciated.
The easiest solution is to convert both dates into Unix timestamps. Then the difference between the two timestamps is simply the number of seconds between between both dates. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php