Check out the DateDiff function in the Visual Basic Help File
Returns a Variant (Long) specifying the number of time intervals between two
specified dates.
Syntax
DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])
The DateDiff function syntax has these named arguments:
interval. String expression that is the interval of time you use to
calculate the difference between date1 and date2.
date1, date2 Variant (Date). Two dates you want to use in the calculation.
The interval argument has these settings:
Setting Description
yyyy Year
q Quarter
m Month
d Day
ww Week
h Hour
n Minute
s Second
--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP