codetrix - v1.5.0
    Preparing search index...

    Function isAfter

    • Checks if the first date is after the second date.

      Parameters

      • date1: Date

        The first date.

      • date2: Date

        The second date to compare.

      Returns boolean

      true if date1 is after date2.

      isAfter(new Date('2025-01-02'), new Date('2025-01-01')); // true