I'm using bootstrap datepicker where the date when selected ,the ng-model
$scope.taskInfo.startDate contains the selected date as
Mon Jun 01 2015 00:00:00 GMT+0530 (India Standard Time)
$scope.taskInfo.startDate = Mon Jun 01 2015 00:00:00 GMT+0530 (India Standard Time)
But when I perform date manipulation on my model,the date seems to jump one day behind.
$scope.taskInfo.startDate.toISOString() = "2015-05-31T18:30:00.000Z"
As you can see I selected June 1 2015,but it got changed to May 31 2015.Has anyone faced similar issue.Request you to share your thoughts