screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html lang="en"> <head> </head> <body> <p>Date: 3024-02-22</p> <button onclick="checkDate()">Check Date</button> <p id="result"></p> <script> function checkDate() { var currentDate = new Date(); var dateToCheck = new Date('3024-02-22'); if (dateToCheck > currentDate) { document.getElementById("result").innerText = 'The date is in the future.'; } else { document.getElementById("result").innerText = 'The date is not in the future.'; } } </script> </body> </html>