Calculate number of moths between two days

aspfun

Registered User.
Local time
Today, 04:13
Joined
Apr 22, 2006
Messages
29
How to code to calculate number of moths between two days?
For example, BeginingDt=09/01/2007, EndingDt=05/20/2009 should be list as below:
2007:4
2008:12
2009:5
(If date of month >=15 will count as whole month, if <15 will be ignored)
 
You need to look at DateDiff in the help
 

Users who are viewing this thread

Back
Top Bottom