This works very well. It doesn't require a lop larger than 7. But I take out the -1 to get
$daycounts[($firstday+$_)%7] = int(($days+6-$_)/7) for(0..6);
And get an array where Monday is 0 and Sunday is 6. This way I can use the UnixDate result -1 to match it to this result.
-Travis
In reply to Suaveant's Solution RE: How Many Mondays in Date Range?
by THuG
in thread How Many Mondays in Date Range?
by THuG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |