How to get the seconds form the current date in JavaScript

1 Answer

0 votes
<script type="text/JavaScript">   

var today = new Date();
var seconds = today.getSeconds();

document.write(seconds); 


/*
run:

19       

*/

</script>

 



answered May 30, 2016 by avibootz
...