Dhtmlx calender

Hello Everyone

I’am currently using professional edition of DHTMLX CALENDER CONTROL.

I’am trying to set current (today’s date) which will not allow me to select any previous(Yesterday’s Date) but unable to. Please guide me with the correct function name along with necessary parameters.

I am currently using DD-MMM-YYYYY format. {Eg: 15-Dec-2010}.

Appreciating Your Support In Advance.
Anirudh

Hello,

to select calendar date you may use one of the following methods:

  1. setDate - it takes Date object or date string as a parameter:

calendar.setDate(new Date(2010,11,15));
or
calendar.setDateFormat("%d-%b-%Y");
calendar.setDate(“15-Dec-2010”);

  1. setFormatedDate - takes date format and date string as a paramerter:

calendar.setFormatedDate("%d-%b-%Y",“15-Dec-2010”);