How can I get the date for monday and friday for the current week?
I have the following code, but it fails if current day is sunday or saturday.
$cu
i use :
$first_week_date = date('d F Y', strtotime('next Monday -1 week', strtotime('this sunday'))); $last_week_date = date('d F Y', strtotime('next Monday -1 week + 4 days', strtotime('this sunday')));