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 DateTimes?
There is a Method boolean isAfter(ReadableInstant instant) in ReadableInstant, so as DateTime implements ReadableInstant it should accept a DateTime as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With