Convert 12 hours to 24 hours [closed]
Use these two method for convert second to 24hours format public static String convertSecToHoursMinute(long Sec) { long hours = Sec / 3600; long minutes = (Sec % 3600) / 60; long seconds = (Sec % 3600) % 60; String amPm = “am”; if (minutes == 60) { minutes = 0; hours = hours + 1; … Read more