Welcome to W3Courses
 Like Us on Facebook

Current Date

Display Current Date Automatically on your Website using JavaScript

The following code displays the current date with month and year in the following format:

September 20, 2007

<script>
<!-- //Hide From Old Browsers

/*
   Do Not Remove the Following Line
   For more scripts visit http://www.w3courses.com
*/

Share

Automatically Display the Current or Today's Date with JavaScript

Add the following code to your html page where you want today's date to be displayed automatically

<script>
<!-- //Hide From Old Browsers

/*
   Do Not Remove the Following Line
   For more scripts visit http://www.w3courses.com
*/

Share