Select Page

How to get the current date using JavaScript

This can be obtained by using the Pre-defined object (Date) in JavaScript


document.write("The current date is:"+Date())

Related Articles

Last Updated On March 20, 2018

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.