<?php $a = new \DateTime('now'); $a->sub(new DateInterval(sprintf('P%dD', 6 + $a->format('w')))); echo $a->format('Y-m-d');
You have javascript disabled. You will not be able to edit any code.