How to show a DateTime value as 24 hour?
Posted on 2009-05-01
I am curious if there is a way to show a DateTime value as 24 hour. I know I can take a string formatted as 24 hour and turn it into a DateTime value, but it then converts it to standard time.
If I have a string = "5/01/2009 23:42:15" and I do a DateTime.Parse() on this value I get
#5/01/2009 11:42:15 PM#. Is there a way for me to get #5/01/2009 23:42:15 PM# or veen better
#5/01/2009 23:42:15# without the PM or AM...?