I'm doing a HTTP get request, in my AngularJS controller, but I don't know why, my date in my Model is different from the date in the Query String generated:
$scope.modalSave = function() {
console.log("modalSave:", $scope.modal);
// prints the correct date: 2015-10-16 00:00
$http.get('/Planner/Save', {
params: {
id: $scope.modal.Id,
date: $scope.modal.Date //wrong date: 2015-10-15 23:00
}
});
}
console.log("modalSave:", $scope.modal.Date);are you get same result?