How to set date to today + 1 month i.e if today is
11/12/2013, then set to 12/12/2013 using knockout-kendo
Like the today's date is set as below
self.todaysDate = ko.observable(new Date());
how to set this one based on todaysDate
self.nextDate = ko.observable(?????);
2 Answers, 1 is accepted
0
Alexander Valchev
Telerik team
answered on 18 Nov 2013, 01:13 PM
Hi Madzie,
If I understood correctly, the question is now to calculate the today + 1 month day. The answer is:
var date = new Date();
date.setMonth(date.getMonth() + 1);
On a side note, I would like to remind you that this question is not directly related to Kendo UI and as such is out of the scope of our support service. The knockout library, as well as knockout-kendo framework are not developed nor maintained by the Kendo UI Team. Any support requests (via tickets or forum posts) should go to either StackOverflow, or to the issues list for that project.
Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!