var auditDate = new Date(dString[2], dString[1] - 1, dString[0]); auditDate.setDate(auditDate.getDate()); if (auditDate && auditDate !=currentAuditDate) { //do something here }
.valueOf()
if (auditDate && auditDate.valueOf() !== currentAuditDate.valueOf()){ // do something here... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)