There are two variables:
$week // номер недели (51) $year // номер года (2015) To determine the beginning and end of a particular week (current year) it turned out:
$first_day = strtotime($week-date("W")." week -".( date("w")==0?6:date("w")-1 )." day 0:00:00"); $p = date("dmY 23:59:59",$first_day); $last_day = date("dmY", strtotime($p.'+6days ')); I do not know how much is written on Feng Shui, but it determines the dates correctly.
We must now determine the same dates, but only for 2015 (2014) year. Tell me how best to do.