Convert C# DateTime to Javascript object -
i have c# datetime passed client as: 1980-01-20t00:00:00
how convert javascript datetime? tried doing
var date = new date(1980-01-20t00:00:00) gives me error
put in quotes:
var date = new date("1980-01-20t00:00:00")
class="snippet-code-js lang-js prettyprint-override">var date = new date("1980-01-20t00:00:00") alert(date)
javascript c# datetime
No comments:
Post a Comment