Check documentation for the latest version of dhtmlxSuite getDate DHTMLX Docs

getDate

returns the currently selected date

Date|string getDate(boolean isFormatted);
isFormattedbooleanif true - returns date as string in current date format
Date|stringthe selected date

Example

var d = myCalendar.getDate();
console.log(d); // {Fri Mar 01 2013 16:00:00 GMT+0300}
 
var d = myCalendar.getDate(true);
console.log(d); // "2013-03-01"

Back to top