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