I have jquery date picker implement trough Shared/EdotorTemplates/DateTime.cshtml like this
@model DateTime
@Html.TextBox("", Model.ToString("dd.MM.yyyy"),
new { @class = "date" })
obviously I want dd.mm.yyyy date format. Everything is ok when form is first loaded.
But, I’m getting mm/dd/yyyy format on jquery datepicker. I tried with following on _Layout.cshtml on domready with
$('.date').datepicker({ dateFormat: "dd.MM.yyyy" });
but I’m getting these strange date 11.September.20122012
How to fix these to dd.mm.yyyy format?
Thanks
Edit like this