codetrix - v1.5.0
    Preparing search index...

    Function isSameDay

    • Checks if two dates fall on the same calendar day (ignores time).

      Parameters

      • date1: Date

        The first date.

      • date2: Date

        The second date.

      Returns boolean

      true if both dates fall on the same day.

      isSameDay(new Date('2025-01-01'), new Date('2025-01-01T23:59:59')); // true