Learn how to get the current date with JavaScript.
Current Date
Use new Date() to get the current date:
Example
js
const d = new Date();
Read more about Dates in the JavaScript Dates Tutorial.
Learn how to get the current date with JavaScript.
Learn how to get the current date with JavaScript.
Use new Date() to get the current date:
const d = new Date();
Read more about Dates in the JavaScript Dates Tutorial.