Created
March 12, 2018 16:53
-
-
Save randybondsjr/d62d1e8adb5d8fa8a2ae570637ba9329 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function getWeek($week, $year) { | |
$dto = new DateTime(); | |
$result["start"] = $dto->setISODate($year, $week, 0)->format("Y-m-d"); | |
$result["end"] = $dto->setISODate($year, $week, 6)->format("Y-m-d"); | |
$result["week"] = $week; | |
$result["year"] = $year; | |
return $result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment