@pathmaker-digital/pmd-utilities - v2.2.6
    Preparing search index...

    Function isSameDay

    • Checks if two Date objects fall on the same calendar day.

      Parameters

      • date1: Date

        The first date.

      • date2: Date

        The second date.

      Returns boolean

      true if both dates are on the same day, otherwise false.

      const result = isSameDay(new Date('2024-05-01'), new Date('2024-05-01'));
      // result === true