jump to contentsacramento state - leadership begins here  
sac state homeadmissionsabout sac stategiving a giftsite indexcontact us

Tutorials - JavaScript Current Date

Sometimes it's nice to display the current date on your Web page. The following JavaScript accomplishes this and has been tested for Y2K date compliance.

Step 1

Copy the following JavaScript in the box below and paste it into the <body> section of your HTML document where you want the date to appear.

Example

last reviewed: January 25, 2008