Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Difference in Months

Status
Not open for further replies.

1661

MIS
Aug 9, 2002
12
US
I need to calculate the difference between 2 dates but in months. Any suggestions?

Thanks in advance!
 
Hi,

How 'bout DateDiff("m", Date1, Date2)???

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at faq222-2244
 
Keep in mind that Skip's solution will treat 1/31 - 2/1 as one month and 1/1 - 1/31 as zero months. The function will count the number of month "boundaries" are crossed. This works the same with other DateDiff() intervals.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top