Check documentation for the latest version 6.0 of dhtmlxSuite getDate DHTMLX Docs

getDate

returns the currently selected date

Date|string getDate(boolean isFormatted);

Parameters

isFormattedbooleanif true - returns date as string in current date format

Returns

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