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.

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

Perfect response.

I did it with cal2.setDate ();

Thanks and have anice day!