Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <script> let currentDate; currentDate = new Date(); document.write(currentDate); let clonedDate = new Date(currentDate.getTime()); document.write("<br>" + clonedDate); </script> </body> </html>