I am using the following code to get a Y-m-d format of weekdays:
$monday = date('Y-m-d', strtotime('Monday'));
$tuesday = date('Y-m-d', strtotime('Tuesday'));
$wednesday = date('Y-m-d', strtotime('Wednesday'));
$thursday = date('Y-m-d', strtotime('Thursday'));
$friday = date('Y-m-d', strtotime('Friday'));
Today is 2012-08-01 (week 31) the Monday value I need should be 2012-07-30.
How come strtotime('Monday')
makes it next monday?