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

    Function addDay

    Utilities for date

    David Hsing

    • Returns the day calculated date with the source date and the specified amount

      Parameters

      • Optionaldate: Date

        The date to inspect

      • Optionalamount: number

        The amount to add, negative number means minus

      Returns undefined | Date

      the day calculated date with the source date and the specified amount

      David Hsing

      addDay(new Date(2023, 8, 30), 1);    // Date(2023, 9, 1)