I am having trouble understanding why a Date in Javascript come out wrong. For example...
$scope.campaign.date_start = new Date(19/11/2014);
Wed Nov 19 2014 00:00:00 GMT+0000 (GMT) - correct
$scope.campaign.date_start.getDay() = 19 - correct
So far so good, however getting the Month and the year gives me incorrect values....
$scope.campaign.date_start.getMonth() = 10 - incorrect should be 11
$scope.campaign.date_start.getYear() = 114 incorrect should be 2014
What I'm I going wrong here?
getMonth(): Returns the month (0-11)getYear(): Returns the year minus 1900