I'm working on reservation sistem for sport halls. Administrator can choose start and end date of reservation via daterangepicker.
Example:
start datetime: 2015-08-12 14:00:00
end datetime: 2015-08-12 16:00:00
This create reservation for specific sport object on that day and time.
Now what i want to do is when user check checkbox(reservate for whole year) this insert reservation for whole year.(from start date increase date +7)
Example:
2015-08-12 14:00:00 2015-08-12 16:00:00
2015-08-19 14:00:00 2015-08-19 16:00:00
2015-08-26 14:00:00 2015-08-26 16:00:00
... for the whole year(till august of next year)