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> let d = new Date("31 January 2018"); document.write(d); </script> </body> </html>