Subtract Two Dates

DBFIN

Registered User.
Local time
Today, 16:19
Joined
May 10, 2007
Messages
205
I have two date fields. I want to subtract them to determine the number of days elapsed. The dates are in the following format: Dateserial(Year,Month,Day). When I subtract them I get 7670 as the result when the number should be 365 if they are a year apart.

How can I subtract the dates in a query?
 
It would help readers if you showed the code you used, along with the input data and the output you received.
 
The syntax I use was actually correct. 7670 was a result for two dates that were 21 years apart, so problem resolved. Thanks again !!!!!!:)
 

Users who are viewing this thread

Back
Top Bottom