Function dateDaysAgo

  • Returns a Date object representing a date that is a certain number of days in the past.

    Parameters

    • days: number

      The number of days ago for the date to represent.

    Returns Date

    A Date object representing the date that is the specified number of days in the past.

    Example

    dateDaysAgo(5);;
    //=> result

Generated using TypeDoc