Check documentation for the latest version of dhtmlxSuite getFormatedDate DHTMLX Docs


returns formatted date as a string

string getFormatedDate(string format,Date date);
formatstringthe date format (if omitted, the current date format is used)
dateDatethe date to apply the specified format to (if omitted, the current date is used)
stringdate 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