I have a date range as follows
from = Date.parse('05.01.2017')
to = Date.parse('10.03.2018')
I want to split the date range by 30 days as follows. I want to include the from and to date.
I found this reference link. But I don't find from and to date in the response. How can I do this?
Expected Output:
05.01.2017 - 03.02.2017
04.02.2017 - 05.03.2017
06.03.2017 - 04.04.2017
...
07.02.2018 - 10.03.2018