HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Click the button to display a date after changing the UTC year, month and day.</p> <button onclick="myFunction()">Display Date</button> <p id="point"></p> <script> function myFunction() { var d = new Date(); var n = d.setUTCFullYear(2025, 11, 25); document.getElementById("point").innerHTML = n; } </script> </body> </html>
OUTPUT
×

Save as Private