Here\'s a summary of the issue: On Sundays, strtotime(\'this week\') returns the start of next week.
strtotime(\'this week\')
In PHP, the week seems to start on Monday. But, on
It's not ideal but this is what I resorted to using:
if(date('N') == 7) { $date = date('Y-m-d',strtotime('monday last week')); } else { $date = date('Y-m-d',strtotime('monday this week')); }