I have a c# model that I am parsing into Json in my Razor view like this:
@Html.Raw(Json.Encode(Model.myModel))
However part of myModel is a date that I need to insatiate as a Javascript date like so:
new Date(yyyy-MM-dd)
Without creating the new javascript date the date is getting parsed and read as a string.
How can I accomplish this?