ReferenceDateTimeDateTime():year()✦Use with AI▾En esta páginaDateTime():year() Establece el año del objeto DateTime. Firma year(year: number): DateTime Parámetros ParámetrosTipoDescripciónyearnumberEl año a establecer. Devuelve DateTime - La instancia actual de DateTime para encadenamiento.