Announcement

Collapse
No announcement yet.

How to convert datetime to string in view in mvc

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied

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

    Leave a comment:


  • How to convert datetime to string in view in mvc

    How to convert datetime to string in view in mvc
Working...
X