The getYear() method returns the year portion of the Date object.The year is represented as either a two-digit number or a four-digit number, depending on the browser version. A Simple Page