Microsoft
Software
Hardware
Network
Question : C# 4.0 convert from 12h format to 24h format.
I have a string like this: 4:00:00 PM and I want to convert it to: 16:00:00 how can I do that with C#?
Answer : C# 4.0 convert from 12h format to 24h format.
string TimeString = "4:00:00 PM";
string NewTimeString = DateTime.Parse(TimeString)
.ToString(
"HH:mm");
Random Solutions
excel vba number of rows
How do most developer handle localization in .NET?
first try with Access 2003 and SOAP -- any ideas what's wrong?
PHP for loop - help with POST data
How to redirect requests to a particular web site to a local server?
Excel - VBA text formatting
Unattended Windows 7 Installation answer file not working
WMIC Get Make, Model and Serial Number
Session Timeout during Session
Netapp - increased LUN volume - resized to gain space - but windows server has not picked up change - what am i Missing please