How to get the current date using JavaScript

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.

More Similar Posts

No results found.

Menu