You are viewing a single comment's thread. Return to all comments →
C#
char timeCase = s[8]; string hourString = string.Concat(s[0],s[1]); int hour = int.Parse(hourString); if(timeCase == 'A') { if(hour == 12) hourString = "00"; } else { if(hour != 12) hourString = (hour+12).ToString(); } return string.Concat(hourString,s[2],s[3],s[4],s[5],s[6],s[7]);
Seems like cookies are disabled on this browser, please enable them to open this website
Time Conversion
You are viewing a single comment's thread. Return to all comments →
C#