Convert Date.Now to 24 hour format
Using Date.Now gives me a string such as "4/19/2007 2:37:25 PM", but I need "4/19/2007 14:37:25". How can I "tell" the Date.Now function that I want the time to be in 24 hr format instead of 12 hr? Thanks...
string s = DateTime.Now.ToString("M/d/yyyy H:mm:ss");