How to get hours and minutes from the date in java?
Please use below snippet and try, it will work public String getHoursAndMinutes(Date date) { calendar.setTime(date); // assigns calendar to given date String min = “”; if (calendar.get(Calendar.MINUTE) < 10) …
How to get hours and minutes from the date in java? Read More