Formatting date

To format a date, you simply need to call formatDate(date, format) function on the calendar object, where date
is a javascript Date object and format is a valid format string. See date format tutorial for available formats.