I have a datetime in SQL server that i return from a controller method in my MVC project using return json()
I get this format in my json-response:
time: "/Date(1409763303817)/"
I try to use this data in a table in my UI with this code:
$("#missingTime").html(new Date(data3.time).toDateString());
I get "Invalid Date" in my column.
What am i doing wrong?
Edit: Found a solution
new Date(parseInt(data3.time.replace("/Date(", "").replace(")/",""), 10)