Function getPastDate

  • Given a number x, return the date string for x years ago.

    Returns

    YYYYMMDD for x years ago today in local time.

    Parameters

    • yearsAgo: number

      how many years to go back from today

    • daysOffset: number = 0

      optional, how many days should be added to the current date

    Returns string

Generated using TypeDoc