Archives: Joda Time

Java – Calculate Difference Between Two Dates Using Joda Time

Calculate Difference Between Two Dates – Java Example

Take a look @ Joda-Time FAQ

You can use a PeriodFormatter to get the format of your choice.

Try the following sample code.



Java – Convert Util Date to Joda DateTime

Convert Java Util Date to Joda DateTime

Make sure date isn’t null, though, otherwise it acts like new new DateTime()