0

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?

Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
Dr. Banana
  • 435
  • 1
  • 7
  • 16

0 Answers0