Java 8 has a completely new API for date and time. One of the most useful classes in this API is
LocalDateTime, for holding a timezone-independent date-with-time value.
There are probably millions of lines of code using the legacy class
java.util.Date for this purpose. As such, when interfacing old and new code there will be a need for converting between the two. As there seems to be no direct methods for accomplishing this, how can it be done?