JavaScript Date getSeconds() methodThe JavaScript date getSeconds() method returns the seconds in the specified date on the basis of local time. SyntaxThe getSeconds() method is represented by the following syntax: ReturnAn integer value between 0 and 59 that represents the second. JavaScript Date getSeconds() method exampleHere, we will understand getSeconds() method through various examples. Example 1Let's see an example to print the value of current second. Test it NowOutput: 56 Example 2Let's see an example to print the value of seconds from the given date. Test it NowOutput: 10 Next TopicJavaScript Math |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India