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