La funzione getYear e` obsoleta e deprecata.

Usa unvece getFullYear()