I'm using ng-show in a page that I'm creating:
<td ng-show="week.EndDate > controller.currentDate">
where week is an object with a property EndDate and currentDate is set in my controller:
currentDate = new Date();
My ng-show fails whether I set the dates >, <, or =. I printed out my dates and this is what they are:
week.Date = 2014-11-07 controller.currentDate = 2015-07-09T21:54:40.655Z
I'm not sure if the issue is being caused by the difference in format or not. If so how can I correct this, if not, is there another way to compare dates?