Reputation:
Anyone done this and can share? I see an option or two but want to know what others have accomplished.
Upvotes: 23
Views: 30561
Reputation: 41
in the 2.1 you can use
public static Calendar parseCalendar(DateTime dt){
return dt.toGregorianCalendar();
}
Upvotes: 1
Reputation: 3954
You can also call AbstractInstant#toDate
http://joda-time.sourceforge.net/api-release/org/joda/time/base/AbstractInstant.html#toDate()
Upvotes: 13
Reputation: 29367
According to joda-time documentation the preferred method to use is to call this: AbstractDateTime#toCalendar.
Upvotes: 26