title: Round java.util.Date to end of day
body: <p>I want to round a <code>java.util.Date</code> object to the end of the day, e.g. rounding <code>2016-04-21T10:28:18.109Z</code> to <code>2016-04-22T00:00:00.000Z</code>.</p>
  
  <p>I saw <a href="https://stackoverflow.com/questions/9001384/java-date-rounding"><em>Java Date rounding</em></a>, but wasn't able to find something compareable for the end of the day. It also is not the same as <a href="https://stackoverflow.com/questions/6850874/how-to-create-a-java-date-object-of-midnight-today-and-midnight-tomorrow"><em>how to create a Java Date object of midnight today and midnight tomorrow?</em></a>, because I don't want to create a new <code>Date</code> (midnight today or tomorrow), but the next midnight based on any given date.</p>