I'm working on a large asp.net MVC web application.
A given message's creation date is stored in the (MS SQL) database as:
2015-12-02 18:08:24.383
Yet, somehow it is outputted to the web browser as a am/pm date:
12/2/2015 6:08:24 PM
Why is this? There doesn't seem to be any explicit conversions going on in the controller methods or views. The model value is:
public System.DateTime MessageSentDate { get; set; }
Then in the View:
This message was sent on: @message.MessageSentDate
As you can see, there's no conversion going on here. So why is a 24hr DateTime in the database being output as an am/pm value. Am I just missing something?
I would like to output 24hr format without am or pm. Is there a configuration value that can be assigned to change time display format across the whole app?