I have to generate a report, which will consist data for last week starting from monday (if today is monday, then only display the today’s date and count).
Can I know how can I get the last week dates array(starting from last monday)?
Thanks.
I wrote this, but in this case if last week start date is 31, then the next day becomes 32, which is not possible.
$last_week_date_start = date('Y-m-d', strtotime('last monday')) + 1;
I want a array of dates.
Thanks.
add inside +1