I have a function that computes a start date and an end date.
It then prints out this code:
$log.log("currentDate: " + currentDate);
$log.log("currentDate: " + startDate + " " + (currentDate.valueOf() > startDate.valueOf()));
$log.log("currentDate: " + endDate + " " + (currentDate.valueOf() < endDate.valueOf()));
But in my console window, the comparisons return false, even when they should return true!
currentDate: Fri Mar 18 2016 14:09:26 GMT-0500 (CDT)angular.js:12722
currentDate: Fri Mar 18 2016 08:00:26 GMT-0500 (CDT) false
currentDate: Fri Mar 18 2016 19:30:26 GMT-0500 (CDT) false
Am I doing something wrong here?