I have a c# DateTime passed to the client as:
1980-01-20T00:00:00
How do i convert it to javascript DateTime? I tried doing
var date = new Date(1980-01-20T00:00:00) but this gives me an error
Put it in quotes:
var date = new Date("1980-01-20T00:00:00")
var date = new Date("1980-01-20T00:00:00")
alert(date)
DateTime format, which cannot change.