|
-
September 15th, 2012 06:11 AM
#1
[RESOLVED] Calculating the months betweeen two dates
Hello,
I have as example:
Dim Datum1 as string
Dim Datum2 as string
Dim TotaalMaanden as integer
Datum1 ="2011-07-31"
Datum2 = "2012-08-01"
TotaalMaanden = datediff("m", Datum1, Datum2)
The result given is 13
That should be 12 full months.
What can i do to get 12 as result?
Herman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Click Here to Expand Forum to Full Width
|
Bookmarks