Javascript Date getYear()

Description

Javascript Date getYear()



// Patches Date// w ww . j  a v  a 2s .  c o m
Date.prototype.getYear = function() {
 return new Date().getFullYear();
};



PreviousNext

Related