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

Save as Private