I was working with JavaScript\'s Date object, and somewhere for the first time I needed to extract the year part of the date. What I saw was a weird behavior. It re
Date
getYear() returns year minus 1900. This has been deprecated for a while now, it's best to use getFullYear().
getYear()
1900
getFullYear()