D
David M C
Given a startDate, and a finishDate, how can I:
a) Find out the number of days in each month between those dates. ie
28/09/06 to 02/11/06 would have 3 days in September, 31 in October, and 2 in
November.
b) Loop for each month. Ie, with the above dates, the loop would run 3 times
(Sept, Oct, Nov).
c) Alternative to all the above. Count the number of days between the two
dates. Loop between the two dates, when the month increments by 1, calculate
the proportion of days counted against the total number of days.
Thanks,
Dave
a) Find out the number of days in each month between those dates. ie
28/09/06 to 02/11/06 would have 3 days in September, 31 in October, and 2 in
November.
b) Loop for each month. Ie, with the above dates, the loop would run 3 times
(Sept, Oct, Nov).
c) Alternative to all the above. Count the number of days between the two
dates. Loop between the two dates, when the month increments by 1, calculate
the proportion of days counted against the total number of days.
Thanks,
Dave