Edit This Code:
See Result »
The getFullYear() method returns the full year of a date:
Result: