With get the date of the first day of the week and last day of the week in php, first day Monday and the last day Friday, for example I have the date 2017-05-23 and I want to kn
there is a solution but I'm not sure if you will accept it like this
$First_date = date_create('this week')->format('Y-m-d H:i:s'); $Last_date = date_create('this week +4 days')->format('Y-m-d H:i:s'); echo $First_date; echo $Last_date;