setFullYear Summary Sets the year of the System.Date object according to local time. Usage public double setFullYear(int month) Returns The current time value of the System.Date object, which represents the difference in milliseconds from the updated date/time and 1 January 1970 00:00:00:00 UTC. Parameters month An integer value representing the year. Description Sets the year of the System.Date object according to local time. Examples Basic Usage 123456import System; Date d = new Date(2011, Date.Month.FEB, 10, 5, 30, 59, 100);Console.log(d.getFullYear()); // 2011d.setFullYear(2012);Console.log(d.getFullYear()); // 2012 Share HTML | BBCode | Direct Link