The function I like using is strtotime.  You should be able to do
something like 
strtotime("now") - strtotime("2/7/2004")

Or I think there is a date difference function.  Though that might be
strtotime("now - 2/7/2004")

Charles Killmer

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 2:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Date Math


I am currently working on an application that needs to break out invoice
totals by age.  This is a sample line item:

2/7/2004    ...   $456.89

Current Total :  Over 30 Days : Over 60 Days : Over 90 days

How can I determine the number of days from the current date?  I should
be able to handle the rest.

Thanks in advance!
Ron

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

Reply via email to