[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)] public DateTime? HireDate { get; set; }
@model DateTime? @Html.TextBox("", Model.HasValue ? @ViewData.TemplateInfo.FormattedModelValue : "", new { @class = "date" })
<script> $(document).ready(function () { $("input:text.date").datepicker({ dateformat: "dd/MM/yyyy" }); }); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)