Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sergio Simarro on Mar 04, 2008 05:43
open dhtmlx forum
Passing date to calendar

Hi all.

Is it able to pass a date to the calendar? I mean, once a date is selected, when opening again the calendar, I would like that the date on the text box appears selected on the calendar, instead of today.

Is it possible?
Thanks and kind regards.
Answer posted by Support on Mar 04, 2008 06:21
If you are using calendar attached to input - it must take input value as initial date.
If you are using standalone calendar control - you can set necessary date by js command
    calendar.setDate(...
or
    calendar.setFormatedDate(...
Answer posted by Sergio Simarro on Mar 04, 2008 06:50

Perfect response.

I did it with cal2.setDate ();

Thanks and have anice day!