screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html> <head> <title>Javascript Get Current Date</title> </head> <body> <div id="app"> <h3>Javascript Get Current new Date() function</h3> <h1 id="date-placeholder"></h1> </div> <script> const currentDate = new Date(); const datePlaceholder = document.getElementById('date-placeholder'); datePlaceholder.textContent = currentDate; </script> </body> </html>