Iso date comparison
Fixes edge cases in date comparisons