There is no good reason to use DateMidnight
. LocalDate
is the better option. Thats because midnight does not occur once a year in certain time-zones, completely messing up the usability of the class, and creating bugs in applications.
The constructor was fixed to avoid the worst problem, however seeing a DateMidnight
object with the internal millisecond value pointing at 01:00 isn’t exactly great.