JavaScript setUTCFullYear

JavaScript setUTCFullYear Function 2

JavaScript setUTCFullYear function set Year, Month, and Day Number of a specified date as per the universal time. The syntax of the setUTCFullYear Date function is: Date.setUTCFullYear(Year_Number, Month, Day_Number) In this setUTCFullYear method, Month, and Day Number are optional arguments. JavaScript setUTCFullYear Function Example We use the setUTCFullYear function to set the current year to 2001 as per … Read more