when passing an object which contains a date from C# to AngularJS the value of the date appears as "/Date(1408482000000)/" and not as a valid date.
my angular code:
$scope.GetLastCompletedAction = function () {
$http.post('Default.aspx/GetLastCompletedAction', {}).success(function (data, status, headers, config) {
$scope.objects = JSON.parse(data.d);
}).error(function (data, status, headers, config) {
$scope.status = status;
console.log(status);
});
}
objects is a list of objects. every object contains a field named startDate which appears invalid.
thanks, Nadav