

The Date.getFullYear() method is used for getting the year of a particular date and local time. That is if the user is from India then the time will correspond to IST (Indian Standard Time ). The represented date corresponds to the current local time. The Date.getDate method represents the date of the present month. the integer value 1 represents the month of January and the integer value 11 represents the month of December. The returned integer ranges from 0 to 11 which represents the months from January to December. The date.getMonth method returns an integer that represents the month that corresponds to the current local date and time. Now let us see some methods with examples and explanations. Using these methods, we can fetch the current day, month, or year for any particular date object. These methods are called on these objects. There are various methods that can be used to get a data object. This number represents the current year of the given date and local time.


This method returns the year according to the current local time of that particular system that the user is using now. This method is a built-in method in javascript. The get the current year in JavaScript is a method that is used to know about the current year.
