@unikue/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