Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Creating a Date Object in JavaScript</title> </head> <body> <script> var d = new Date(); document.write(d); </script> </body> </html>