Skip to content

getYear

getYear(date): number

Get the year from a date string or Date object

string | Date

number