How to get the current date using JavaScript

Learn how to get the current date using JavaScript.

current date

Use new Date() Get the current date:

Instance

const d = new Date();

Try It Yourself

Related Pages

Tutorial:JavaScript Date