Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Passing Parameters to the Date Object</title> </head> <body> <script> var d = new Date(2018,0,31,14,35,20,50); document.write(d); </script> </body> </html>