public class Employee
{
       [DataType(DataType.Date)]
        public DateTime DateOfRegistration { get; set; }
}
My .cshtml:
@Html.EditorFor(model => model.DateOfRegistration, 
                new { htmlAttributes = new { @class = "form-control", @readonly = "true" } })
jQuery code:
$('input[type=datetime]').datepicker({
        dateFormat: "dd/M/yy",
        changeMonth: true,
        changeYear: true,
    });
Please help me - how can I get date in dd/mm/yyyy format?

 
     
    