I am doing weekly report excel file export. I have $dateFrom
and $dateTo
.
$dateForm = "2021-07-26";
$dateTo = "2021-08-13";
I want to get by week based on those two dates. Monday to Sunday is one week and I want to get the dateForm
and dateTo
for that week.
The result I want to display is:
For example :
dateForm dateTo
---------- ----------
2021-07-26 2021-08-01
2021-08-02 2021-08-08
2021-08-09 2021-08-13
Thanks.