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

Save as Private