How do I convert a date time value in a C# application into a string that has the form 6-18-2012 13:12:13.0? I keep getting leading zeros. In addition, I can’t seem to get it into military time.
How do I convert a date time value in a C# application into a
Share
If you don’t want any leading zero on the hour, either, do this: