Get the date time as a
java.util.Date
.
The Date
object created has exactly the same year, month and day as this date. The time will be set to the earliest valid time for that date.
Converting to a JDK Date is full of complications as the JDK Date constructor doesn't behave as you might expect around DST transitions. This method works by taking a first guess and then adjusting the JDK date until it has the earliest valid instant. This also handles the situation where the JDK time zone data differs from the Joda-Time time zone data.
@return a Date initialised with this date, never null
@since 2.0