Refer to this: Finding the first day of the week via php Also try this -
<?php // var_dump(new \DateTime('first day of this week')); echo date("Ymd", strtotime('monday this week')), "<br/>\n"; echo date("Ymd", strtotime('sunday last week')), "<br/>\n"; ?>
source share