Set time to 00:00:00
Use another constant instead of Calendar.HOUR, use Calendar.HOUR_OF_DAY. calendar.set(Calendar.HOUR_OF_DAY, 0); Calendar.HOUR uses 0-11 (for use with AM/PM), and Calendar.HOUR_OF_DAY uses 0-23. To quote the Javadocs: public static final int HOUR Field number for get and set indicating the hour of the morning or afternoon. HOUR is used for the 12-hour clock (0 – 11). Noon … Read more