I am trying to figure this strange behaviour on a client machine (IE10)
When we create a new javascript Object, the ajax response from the server is \/Date(-62135596800000)\/.
I format the JSON Date in the following way:
var date = new moment(parseInt(response.substr(6)));
On the Client machine this Date Object returns the following Date Format 0000-12-31.
When I try to validate the Date on the Server I get the response is an error saying that this is not a valid date.
My validation is Fluent Validation and the Rule is
RuleFor(x=>x.LastUpdateDate).NotEmpty(); Can anyone point me in the correct direction to help solve this issue?
-62135596800000, a negative number. It's therefore giving you a date that's that many milliseconds before the beginning of the epoch. If I were you I'd fix the server so that it produced a less bizarre date format.0001-01-01only on some machines is it 1 day before.