You are viewing a single comment's thread. Return to all comments →
For 12:00:00PM the answer should be 12:00:00
Your code gives 24:00:00 which is incorrect. For "PM" case, don't add 12 if the hour is 12
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 →
For 12:00:00PM the answer should be 12:00:00
Your code gives 24:00:00 which is incorrect. For "PM" case, don't add 12 if the hour is 12