I saw this answer here but when I used it in my MVC 5 VS 2013 app it throws "Invalid Character error The char is the @
$(document).on("click", "#btExtendDates", function () {
var _date = @Html.Raw(Json.Encode(Model.PmntDate));
});
Adding quotes doesn't work either. It returns a literal string (Which I believe is correct)
var _date = '@Html.Raw(Json.Encode(Model.PmntDate))'