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