Public Sub NumberOfWeeksBetween(StartDate As Long,EndDate As Long) As Int
Return Round(DateUtils.PeriodBetweenInDays(StartDate,EndDate).Days / 7)
End Sub
apparently your week has more or less than 7 days, but I can only speak for myself and for the people I know, for whom 1 week always goes exactly 7 days.
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday = 7 days.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.