php - Get date from monday depending on week number -
i can`t figure out code date monday depending on week number of year.
could me code?
thanks.
this provide monday of week year:
$thisyear = date('y'); $weeknum = 40; $date = date('y-m-d', strtotime("$thisyear-w$weeknum-1")); // outputs 2013-09-30
Comments
Post a Comment