I have a form where the user can enter a from and to date, and when the form is submitted i will generate an excel file that contains the range of weeks in the specified from to date.
As an example if the user entered: 1/8/2018 - 15/8/2018
the excel file will contains the following columns:
-1/8/2018 to 7/8/2018
-8/8/2018 to 14/8/2018
-15/8/2018 to 21/8/2018
how can i achieve to split the date range by weeks
Appreciate any help.