Javascript Date() function

The date() function of date object returns today's date and time. Date object are usually created using new Date() constructor. Use it for example to get today's date and time.

Syntax

Javascript Date() Function Example