RE: Date Math

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

 



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: Ron.Herhuth@xxxxxxxxxxxxxxxxx
[mailto:Ron.Herhuth@xxxxxxxxxxxxxxxxx] 
Sent: Monday, April 12, 2004 2:04 PM
To: php-windows@xxxxxxxxxxxxx
Subject:  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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux