I have a problem resetting hours in Java. For a given date I want to set the hours to 00:00:00.
This is my code :
/** * Resets milliseconds, se
One more JAVA 8 way:
LocalDateTime localDateTime = LocalDateTime.now().truncatedTo(ChronoUnit.HOURS);
But it's a lot more useful to edit the date that already exists.