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
Can't install wifi printer MX870
populating select limited to one category and its subcategories
Respose time slow
Show/Hide All Images
Submit a Form Without Refresh
Reducing bandwidth consumption between domain controllors at multiple sites
Default time exchange deleting emails
Dictionary list C#
What is the best Raid stripe size and Windows allocation unit size for large files?
Lost User Selection on XP start up screen