Create a counter variable, and initialise it to 0.
Create a date object from your start date. Incremement it by 1 day. This gives you your first day to check (you didn't specify "inclusive", so I am assuming you really did mean "between").
Then do a while loop, of which the condition is the end date.
In the while loop, use the getDay method of the date object to return the day of the week, and if it is a Monday, increment your counter.
Hope this helps,
Dan
[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
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.