Prev Demo
JavaScript
>
Setutcminutes() Method
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <p>Click the below button to set the minutes according to UTC time.</p> <input type="button" value="Click" onclick="myTime()" /> <p id="myId"></p> <script> function myTime() { var A = new Date(); //* Returns the present date accoding to internet network*// A.setUTCMinutes(29); //* Sets the Minutes according to UTC*// document.getElementById("myId").innerHTML = A; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output