convert both in dates into a time stamp using mktime()
subtract the two figures you get back
then divide by 86400 (60sec/min * 60min/hr * 24hr/day)
From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 12:57 PM
Subject: [PHP] Date aritmetic
I would like to know if anyone could help me with the following issue:
I have 6 variables, two holds a day, others the month and the last ones the
year. They are entered through drop-down-menus where the user selects day,
month and year for each date.
I would like to know the difference in days between these two dates. Since
the dates are separated and each value day, month and year are stored on
separated variables I wonder who to proceed here. I need to know how many
days of separate each dates.
Thank you in advance,
Salt Lake City, UT.
Linux User #207984