Calendar.Hour_of_day 24. Use calendar.hour_of_day for getting hour in 24 format. C o m public class main { public static void main(string[] args) {.
E.g., at 10:04:15.250 pm the hour_of_day is 22. // 12 hour clock int hourofday = calendar.get(calendar.hour_of_day);
Calendar.Hour_of_day 24 Images References :