Download

How to convert datetime to string in view in mvc

How to convert datetime to string in view in mvc

view model: [DisplayFormat(DataFormatString = “{0:dd MMM yyyy}”)] public DateTime Date { get; set } view: @Html.DisplayFor(x => x.Date)