Jak zdobyć rok w JavaScript
new Date().getFullYear(); // This will get you the current year
Dangerous Donkey
new Date().getFullYear(); // This will get you the current year
var d = new Date();
var n = d.getFullYear();
document.write(new Date().getFullYear());