Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Construct a Date Object by Passing a Date String</title> </head> <body> <script> var d = new Date("31 January 2018"); document.write(d); </script> </body> </html>