javascript set date methods The getTime () method returns the number of milliseconds since January 1, 1970: The getFullYear () method returns the year of a date as a four digit number: The getMonth () method returns the month of a date as a number (0-11): In JavaScript, the first month (January) is month number 0, so December returns month number 11. The getTime () method returns the number of milliseconds since January 1, 1970: The getFullYear () method returns the year of a date as a four digit number: The getMonth () method returns the month of a date as a number (0-11): In JavaScript, the first month (January) is month number 0, so December returns month number 11. e money electronic money Set Date methods let you set date values (years, months, days, hours, minutes, seconds, milliseconds) for a Date Object. The setFullYear () method sets the year of a date object. In this example to 2020: The setFullYear () method can optionally set month and day: The setMonth () method sets the m...