equal

compares two dates

boolean equal(object datea,object dateb);

Parameters

dateaobjectfirst date to compare
datebobjectsecond date to compare

Returns

booleantrue if both dates point to the same value

Example

var date1 = new Date(2013,11,12,8,35);
var date2 = new Date(2012,11,12,8,35);
 
var result = webix.Date.equal(date1,date2);
 
console.log(result); // -> false

Back to top