Description
The getFullYear() method returns the year (four digits) of the specified date, according to local time.
This method has the form:
Date.getFullYear()Examples
The following example shows the basic use of this method.
<script>
var d = new Date();
document.write(d.getFullYear());
</script>This produces the following result:
 Browser Support
| Firefox | IE | Chrome | Opera | Safari | 
|---|---|---|---|---|
