Function getYear

  • Returns the year as a number between 0 and 9999.

    Parameters

    • date: Date = ...

      If not the current year is wanted, pass a date object to get the year from.

    Returns number

    Remarks

    to use UTC time, use

    See

    getYear.UTC()

Generated using TypeDoc