Thanks.
getFullYear() seems to work fine.