Check documentation for the latest version of dhtmlxSuite getFormatedDate DHTMLX Docs

getFormatedDate

returns formatted date as a string

string getFormatedDate(string format,Date|string date);
formatstringthe date format (if omitted, the currently set date format is used)
dateDate|stringthe date to apply the specified format to (if omitted, the currently selected date is used)
stringdate in the set format

Example

//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());

Details

See the available date formats

Back to top