var currentDate = Thu Aug 14 2014 05:30:00 GMT+0530 (IST); // This is dateTimeobj
var deptDate = Thu Aug 14 2014 14:23:24 GMT+0530 (IST); // This is dateTimeobj
alert(currentDate == deptDate); // false
How can I compare these two dates, while ignoring the time portion?