returns formatted date as a string
format | string | the date format (if omitted, the currently set date format is used) |
date | Date|string | the date to apply the specified format to (if omitted, the currently selected date is used) |
string | date in the set format |
//a date selected in the calendar
var d = myCalendar.getFormatedDate("%d/%m/%y");
or
//for today
var d = myCalendar.getFormatedDate("%d/%m/%y", new Date());
See the available date formats
Back to top