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