Yeah, that's functionally equivalent, but I wanted to keep the two halves of the equation separate (calculating the last day of the week and calculating the number of days until the last day of the week). In mine, ($first_dow + 6) can be replaced with $last_dow.
|Replies are listed 'Best First'.|
Re^6: Determing Week Ranges between given date range?
by mojotoad (Monsignor) on Oct 13, 2010 at 06:09 UTC