As from v1.5, you are recommended to avoid DateMidnight and use {@link #toDateTimeAtStartOfDay()} instead because of the exceptiondetailed below.
This method will throw an exception if the default time zone switches to Daylight Savings Time at midnight and this LocalDate represents that switchover date. The problem is that there is no such time as midnight on the required date, and as such an exception is thrown.
This instance is immutable and unaffected by this method call. @return the DateMidnight instance in the default zone
|
|
|
|