Статьи / JavaScript / Date


getHours

Возвращает час в 24 формате.
var d = new Date();
d.getHours(); //19