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