equal

compares two dates

boolean equal(Date datea,Date dateb);
dateaDatefirst date to compare
datebDatesecond date to compare
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