HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Click the button to display the milliseconds of the given time.</p> <button onclick="myFunction()">Display Milliseconds</button> <p id="point"></p> <script> function myFunction(){ var d = new Date("May 19, 1995 02:30:25:619"); var n = d.getMilliseconds(); document.getElementById("point").innerHTML = n; } </script> </body> </html>
OUTPUT
×

Save as Private