How to check a date is less than or greater than with other date...?

convert to instant, then convert to milliseconds. The new millisecond substract by the original millisecond. If it is negative, it is before. If it’s positive, it is after.

2 Likes