You did not specify what type in Joda time you are interested in, but:
Instant instant = ...; Date date = instant.toDate(); instant = new Instant(date);
Neither Date nor Instant is associated with time zones, so there is no need to specify here.
It makes no sense to convert from LocalDateTime / LocalDate / LocalTime to Date (or vice versa), as this will depend on the time zone used.
With DateTime you can convert to Date without specifying a time zone, but to convert from Date to DateTime you must specify the time zone or use the systemβs default time zone. (If you really want this, I would directly point it out so that it is clear that this is a deliberate choice.)
For example:
DateTimeZone zone = DateTimeZone.forID("Europe/London"); Date date = ...; DateTime dateTime = new DateTime(date.getTime(), zone);
Jon Skeet Mar 11 '13 at 7:36 on 2013-03-11 07:36
source share