I have the following code in my MVC 4 razor view, which is supposed to take the DateTime property called modifiedDate, and print out the month name, ie, 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.