Function dateIsBeforeDaysAgo

  • Tests whether the given date happened before the given number of days in the past relatively to today.

    Parameters

    • date: Date

      The date to compare.

    • nbOfDays: number = 1

      The number of days in the future.

    Returns boolean

    true if the given date happened before today - nbOfDays, false otherwise.

Generated using TypeDoc