for example
if today is 22 Jan
,then i want get the date set as
(StartDate :16-Jan-2018 & EndDate:22-Jan-2018)
and
second date set is as
(StartDate :9-Jan-2018 & EndDate:15-Jan-2018)
and third date set as
(StartDate :02-Jan-2018 & EndDate:08-Jan-2018)
and last date set as
(StartDate :1-Jan-2018 & EndDate:1-Jan-2018)
where first date will be given by user i.e :22-Jan-2018