Checks if the first date is after the second date.
The first date.
The second date to compare.
true if date1 is after date2.
true
date1
date2
isAfter(new Date('2025-01-02'), new Date('2025-01-01')); // true Copy
isAfter(new Date('2025-01-02'), new Date('2025-01-01')); // true
Checks if the first date is after the second date.