Comparing DateTime objects
See the question and my original answer on StackOverflowif (dt2 > dt1) {
print dt2 is newer than dt1 }
should be enough as DateTime overloads the comparison operators.
if (dt2 > dt1) {
print dt2 is newer than dt1 }
should be enough as DateTime overloads the comparison operators.