JavaScript Current Date

Display the current date using JavaScript.

Preview

Code

<script>
let today = new Date();
console.log("Current date:", today);
</script>

More JS Tutorial Examples (7)