Editor
Download
Open
Auto Run
<!DOCTYPE html> <html lang="en"> <head> <title>JavaScript date() function</title> </head> <body> <script type="text/javascript"> var date=new Date(); document.write(date); </script> </body> </html>
Preview