<?php $date = new DateTime('last sunday'); var_dump($date); $date2 = new DateTime('2013-01-01'); $date2->modify('last sunday'); var_dump($date2);
You have javascript disabled. You will not be able to edit any code.