I am doing all what is said on the net to set the date date format but without success.
In my model:
//[DataType(DataType.DateTime)] I TRIED WITH AND WITHOUT THIS LINE
[Display(Name = "Release Date")]
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
public DateTime? ReleaseDate { get; set; }
And in my view, simply
@Html.TextBoxFor(model => model.ReleaseDate, "{0:dd/mm/yyyy}",new { @class = "form-control text-box single-line" })
I Try to enter May 14th 2016 this way: 14/05/2016 and it doesnt work. To get my "may 14th" I still need to enter 05/14/2016. Can anyone explain me why so it is? Thank you