globalsDate()prototypeDate.prototype.getSeconds()Version: 3.27.2On this pageDate.prototype.getSeconds()The getSeconds() method returns the seconds in the specified date according to local time.SyntaxgetSeconds()Return valueAn integer number, between 0 and 59, representing the seconds in the given date according to local time.