1. Tech

Your suggestion is on its way!

An email with a link to:


was emailed to:

Thanks for sharing About.com with others!

Use JavaScript to Display the Current Date


See the code

This script will show the current date according to your computer. Note: if your computer time is off, this script will display the wrong time as well.

A completely unformatted version of the date is the default.
Today's date is:

With a few more lines you can get it to display the day of the week. Today is:

Or you can display just the date.

And with a few other lines, can you can greet your readers with the appropriate greeting.

Return to Article

Jennifer Kyrnin

©2017 About.com. All rights reserved.