Статьи / JavaScript / Date


getFullYear

Возвращает год 4 цифры. пр: 2012.

var d = new Date();
d.getFullYear(); //2012