Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Justin on Aug 20, 2009 13:24
open dhtmlx forum
dhtmlxcalendar - how to add 1 day to current day

I would like to set the start date of the calendar to be always 1 day after the system time (i.e. tomorrow) .
startDate = new Date();
mCal.setSensitive(startDate, new Date("01/01/2500"));

How can this be done?
Answer posted by Alex (support) on Aug 21, 2009 03:10

the possible solution is:

var cdate = new Date();

mCal.setSensitive(new Date(cdate.getFullYear(),cdate.getMonth(),cdate.getDate()+1), null);