Get Current Date

Create a Date object representing the current date and time.

Preview

Code

<script>
let now = new Date();
console.log(now);
</script>

More JS Dates Examples (7)