in reply to Suaveant's Solution RE: How Many Mondays in Date Range?
in thread How Many Mondays in Date Range?

I put the -1 in because you said $firstday went from 1-7, was I wrong?

                - Ant

  • Comment on Re: Re: Re: How Many Mondays in Date Range?

Replies are listed 'Best First'.
Re: Re: Re: Re: How Many Mondays in Date Range?
by THuG (Beadle) on Aug 02, 2001 at 18:34 UTC

    Oh, not at all. But everyone brought up a good point that I was wasting the 0 position of the array. Besides, it is just as easy to subtract 1 from the UnixDate result when I ask how many Tuesdays there were.

    You weren't wrong, I was just stuck on using 1..7. I should've shifted to 0..6.

    -Travis