[Column(TypeName = "date")] [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")] public DateTime? starting_date { get; set; }
<label>Starting Date:</label> @Html.TextBoxFor(a => a.starting_date) @Html.ValidationMessageFor(a => a.starting_date)<br />
$(document).ready(function () { $('#starting_date').datepicker({ dateFormat: "dd/mm/yy" }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)