I save UTC time on the server, and when I pass it to the front end it gives me something like this: "/Date(1543396029630)/"
My question is: is this the int
the utc timestamp?
I tried to convert the int using an online converter, but the result is different from my record in the database.
My database record is "28/11/2018 23:12:33"
public ActionResult test()
{
var date = _context.Batches.FirstOrDefault(c => c.Batches_BatchID == 1)
.Batches_ClosedDate;
var dateString = _context.Batches.FirstOrDefault(c => c.Batches_BatchID == 1)
.Batches_ClosedDate.ToString();
return Json(new
{
dateString,
date,
}, JsonRequestBehavior.AllowGet);
}
and the result is:
{
"dateString": "28/11/2018 23:12:33",
"date": "/Date(1543399953230)/"
}
and I went to an online converter, it gives me the date is different from dateString
any idea?
My account got blocked by some down votes questions, the funny thing is I have to re-edit them, even though I already have the accepted answer.I do not understand what's the point to do this.I am so frustrated by this stackoverflow system.
Now, I basically can do nothing but keep editing my questions, and they have all been answered. This is ridiculous !!!