sets the format of date presentation in the calendar input
name | string | the item's name |
dateFormat | string | the format in which dates will be presented on the client |
serverDateFormat | string | the format in which dates will be passed to/loaded from the server |
myForm.setCalendarDateFormat(name, "%d/%m/%y", "%d/%m/%y");
Format string can contain any separator character and any element from the following list:
For example, if you want to set 1st June 2011 as 01.06.2011, the following format should be specified:
myForm.setCalendarDateFormat("cal1","%d.%m.%Y","%d.%m.%Y");
Back to top