Monday, March 12, 2012

Military time

How do I format a DateTime to Military time?
--
Message posted via http://www.sqlmonster.com>How do I format a DateTime to Military time?
If you mean the "normal" 24-hour time format (that the whole world
except the US uses by default - *not* just the military!) :
string sTime = YourDateTime.ToString("HH:mm");
Marc
================================================================Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch

No comments:

Post a Comment