Сравниваю 2 даты, всегда получаю false - почему???
currentDt = new Date();
currentDt.setHours(0,0,0,0);
reportDt = new Date(record.data.reportDt);
console.log('currentDt = ' + currentDt);
console.log('reportDt = ' + reportDt);
console.log(currentDt > reportDt);
console.log(currentDt < reportDt);
console.log(currentDt == reportDt);
console.log(currentDt === reportDt);
РЕЗУЛЬТАТ
currentDt = Sat Jun 15 2019 00:00:00 GMT+0300 (Russian Standart Time)
reportDt = Sat Jun 15 2019 00:00:00 GMT+0300 (Russian Standart Time)
false
false
false
false
ПОЧЕМУ??? Как их сравнить? Функция Ext.Date.format(reportDt, 'yyyy-mm-dd') тоже не отрабатывала, сравнивала только по числам, игнорируя месяц.