@yookue/ts-lang-utils
    Preparing search index...

    Function isSameDay

    • Returns whether the given date is same day with the comparison date

      Parameters

      • Optionaldate: Date

        the date to check

      • Optionalcomparison: Date

        the date to compare

      • deepCompare: boolean = true

        whether compare deeply with year

      Returns boolean

      whether the given date is same day with the comparison date

      David Hsing

      isSameDay(new Date(), new Date());    // true