Hi,
You can use the date::calc module to calculate the difference between dates.
Bu why not use a where clause to get all stored dates less then three days ago in your Query? This saves code in your script.
 
Regards,
Ed
 
-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Michael C. Podlesny
Verzonden: woensdag 14 augustus 2002 0:59
Aan: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Onderwerp: (no subject)

I am looking to do a mathematical computation for dates.

I need to do the following:

if (today's date - a stored date < 3 days) {

code here

}


Where today's date is well today's date and a stored date is a date I
already retrieved from my database.  I am looking to find the difference in
days.  Anyone with any ideas?

Reply via email to