I am working on MVC project, but there's a problem in using Date Format.
Here is my code:
[DisplayFormat(DataFormatString = "{0:dd-MM-yyyy}", ApplyFormatInEditMode = true)]
[DataType(DataType.Date)]
public Nullable<System.DateTime> docDate { get; set; }
and in the HTML side
@Html.EditorFor(m => m.docDate)
and I do not know where is the problem the format always came like this "MM/dd/yyyy"
please help me in this issue.