HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Click the button to display the UTC date of the month.</p> <button onclick="myFunction()">Display UTC Date</button> <p id="point"></p> <script> function myFunction() { var d = new Date(); var n = d.getUTCDate(); document.getElementById("point").innerHTML = n; } </script> </body> </html>
OUTPUT
×

Save as Private