How to get the current date using JavaScript

No Comments

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

Example:

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

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link