Please don't make duplicate vs ASP.NET Parse DateTime result from ajax call to javascript date and Parsing DateTime format passed from Ajax to “dd/MM/yyyy”, I have been read carefully. But my question is differences.
I have data from asp.net load by ajax below.
Datetime in c#: "2019-05-04"
The result in ajax is: "/Date(1556895600000+0900)/"
You can see the result automatic add time UTC offset to DateTime, I don't know why.
How can I convert to DateTime in javascript vs data above?
var d = new Date(("/Date(1556895600000+0900)/").match(/\d+/)[0] * 1)
console.log(d)
You can see: Result "2019-05-03T15:00:00.000Z", But I expect result "2019-05-04". How can I do this?