date using JavaScript
<!DOCTYPE html> <html> <body> <h2>Event</h2> <button onclick="document.getElementById(‘fordate’).innerHTML = Date()"> Click to display Date and Time.</button> <p id="fordate"></p> </body> </html> —————————————————————————————————————————————- <html> <body> <script type="text/javascript"> function displayDateTime() { var currentDate = …
date using JavaScript Read More