Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getStartAndEndDate($week,$year){
- $dto=new DateTime();
- $dto->setISODate($year,$week);
- $return[1]=$dto->format("d.m.Y");
- for($i=1;$i<=6;){
- $dto->modify("+1 day");
- $return[$i+1]=$dto->format("d.m.Y");
- $i++;
- }
- return $return;
- }
Advertisement
Add Comment
Please, Sign In to add comment