using <script type="text/javascript"> $(document).ready(function () { $('.dateTime').datepicker({ dateFormat: "dd/mm/yy" }); }); </script> @Html.TextBox("DOB", Model.DOB.ToString("dd/mm/yy"), new { @class = "dateTime" })
@Html.EditorFor(m=>m.DOB, Model.DOB.ToString("dd/mm/yy"), new { @class = "dateTime" })
@Html.EditorFor(m=>m.DOB, Model.DOB, new { @class = "dateTime" })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)