i have this and yesterday it worked fine, but not today.
$current_dayname = date("l");
$datemon = date("m-d-Y",strtotime('monday this week'));
$datetue = date("m-d-Y",strtotime("tuesday this week"));
$datewed = date("m-d-Y",strtotime("wednesday this week"));
$datethu = date("m-d-Y",strtotime("thursday this week"));
$datefri = date("m-d-Y",strtotime("friday this week"));
yesterday, $datemon through $datefri would get the values of 1-20-2014 through 1-24-2014, but today only tuesday through friday is working and monday is getting the date for next monday, not yesterday.
how can i get the dates of the 5 weekdays of the current week? so if it's wednesday for example, the 5 variables should be 2 for 2 days past, 1 for current day, and 2 for future days. know what i mean?
i'm going to guess that someone will ask if week starts with monday or sunday. doesn't really matter as long as script works, but the week starting on a monday is preferable.