Function dateIsDaysAgo

  • Tests whether the given date happened the given number of days in the past.

    Parameters

    • date: Date

      The date to compare.

    • nbOfDays: number = 1

    Returns boolean

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

Generated using TypeDoc