Function getCurrentYear

  • Returns the current year as a number.

    Returns number

    The current year as a number.

    Remarks

    This function uses the getUTCFullYear method of the Date object to get the current year.

    Example

    getCurrentYear();;
    //=> 2022

Generated using TypeDoc