<How to get current date with reset time 00:00 in ...
# stackoverflow
u
How to get current date with reset time 00:00 in kotlin Hey I am using calendar instance to get current date and time. private fun getCurrentCalendar() { Calendar.getInstance() } Output:- Wed Jul 20 214552 GMT+01:00 2022 If I want to reset time I need to use this function fun resetCalendarTime(calendar: Calendar) { calendar.set(Calendar.HOUR_OF_DAY, 0) calendar.set(Calendar.MINUTE, 0) calendar.set(Calendar.SECOND, 0) calendar.set(Calendar.MILLISECOND, 0) } it will give this Wed Jul 20 000000 GMT+01:00 2022 My question is...