I want to set the first day of the week to Thursday (not Sunday or Monday), because it\'s the company\'s cut-off date.
I already have a code to determine the current wee
This should work.
function findweek($date, $type = "l") { $time = strtotime($date); return date($type, mktime(0, 0, 0, date("m", $time) , date("d", $time)-date("d", $time)+1, date("Y", $time))); } echo findweek('2015-09-16');