Check if Date X is after Date Y with JodaTime
java, jodatime
Solution
There is a Method `boolean isAfter(ReadableInstant instant)` in ReadableInstant, so as DateTime implements ReadableInstant it should accept a DateTime as well.
Problem
I'm using the jodatime `DateTime` variable. I'd like to check if DateTime 'x' is after DateTime 'y'. The isAfter function only accepts a `long` parameter, not a `DateTime`, which I find very odd. Whats the best way to compare two `DateTime`s?