Calculate weeks or months between dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

input fields
start date
end date
Frequency (Weekly or Monthly)

based on the frequency I need to determine the nbr of payments between 2 dates

ex.
start date = 1/30/06
end date = 4/9/06
frequency = weekly

result of calc should be 10

or if frequency = monthly

result of calc should be 2 (2 full months not just 4 - 1 given 3, must pay
attention full months of duration)

Thanks you for any and al input
 
I know for the weekly calculation I could determine the number of days
between the dates then divide by 7 to get weeks, but Monthly calculation is
more difficult
 
input fields
start date
end date
Frequency (Weekly or Monthly)

based on the frequency I need to determine the nbr of payments between 2 dates

ex.
start date = 1/30/06
end date = 4/9/06
frequency = weekly

result of calc should be 10

or if frequency = monthly

result of calc should be 2 (2 full months not just 4 - 1 given 3, must pay
attention full months of duration)

Thanks you for any and al input

Take a look at these. Maybe one or more might help.
http://www.mvps.org/access/datetime/index.html

Regards,
RD
 
Back
Top