@pengzhanbo/utils - v3.4.1
    Preparing search index...

    Function isSameDay

    • Check if two dates is same day

      检查两个日期是否是同一天

      Parameters

      • date1: string | number | Date

        The first date to compare. 第一个要比较的日期

      • Optionaldate2: string | number | Date

        The second date to compare. 第二个要比较的日期

      Returns boolean

      True if both dates are on the same day, false otherwise. 如果两个日期在同一天则返回true,否则返回false