RéférenceDateTimeDateTime():year()Sur cette pageDateTime():year() Sets the year of the DateTime object. Signature year(year: number): DateTime Parameters ParametersTypeDescriptionyearnumberThe year to set. Returns DateTime - The current DateTime instance for chaining.