jQuery – Get current year

var currentYear = (new Date).getFullYear();
$(document).ready(function() {
  alert(currentYear);
});

 

Done =)

Reference: Andrew Epperson – Using jQuery: Get Current Year

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.