<div id="demo"></div> <script> var vid = {}; vid.currentTime = 3.6544; document.getElementById("demo").innerHTML = vid.currentTime.toString().split('.')[0]; </script>