Date().getSeconds() : getSeconds : Date JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Date » getSeconds »

 

Date().getSeconds()







The getSeconds() method returns the seconds portion of the Date object expressed as an integer from 0 to 59.












<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
dateVar = new Date();
alert(dateVar.getSeconds());

//  -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Date
» getSeconds