<html>
<body>
<p id="demo">Click the button to display the millisecond of a date time, after setting the millisecond.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var d = new Date();
d.setMilliseconds(192);
var x = document.getElementById("demo");
x.innerHTML=d.getMilliseconds();
}
</script>
</body>
</html>