I have the following code in my MVC 4 razor view that should use the DateTime property called modifiedDate and print the name of the month, i.e. Jan, Feb, etc. Instead of 1, 2.
@foreach (var post in Model.NewsList) { <li class="entry"> <p class="calendar"><em>@post.modifiedDate.Value.Month.ToString("mmm")</em></p> </li> }
Any ideas how to do this?
Thanks.
tcode source share