I have a model with a DateTime property:
public DateTime EndTime { get; set; }
In my controller, I assign that property to a value returned from my database:
aModel.EndTime = auction.EndTime.Value;
And in my View:
<p class="time">@item.EndTime</p>
Currently the date is returned as:
9/12/2011 --> Month / Day / Year
I want it to display as:
12/9/2011 --> Day / Month / Year
I'm sure the application is displaying the date according to the servers settings, but I do not wish to change that. How can I display the date like I want to in the second example?