I'm trying to get the date of a monday of a given week. I found some examples on here, but all of them are not working.
This is what I have currently.
$week = $_GET['week'];
$year = date('Y');
$date = date('Y-m-d', strtotime("$year-W$week-1"));
echo $date;
How would I do this?
' . $date;` Gives me 2015-09-21 which is yesterday. – developerwjk Sep 22 '15 at 23:52