DateTime has a method called isBefore. Use that instead of this. Here's the doc: http://joda-time.sourceforge.net/apidocs/org/joda/time/base/AbstractInstant.html#isBefore(org.joda.time.ReadableInstant)