Javascript - Write program to Create a Date object to display the current date and time.

Requirements

Write program to Create a Date object to display the current date and time.

Hint

Use the new Date() constructor.

Demo

console.log( new Date() );

Result

Related Exercise