Your Best Hosting
Solution

Keeping it Simple


  Main Menu
     Home Page
     About Us
     Hosting Plans
     Register Domains
     The Good Stuff
     Member Area
     Support Ticket
  Free Extras
     Free Domain Name
     RVSiteBuilder
     WebTraxEditor
     Tutorials
     And Much More
  Important Information
     90 Day Free Trial
     Our Guarantee
     F A Q
  Contact Information
     Contact Us
     Our Forum
  Site Map
     Site Map

Back to Previous Page






Basic Date Display
What it's all about:

Use this code to display today's date on your Web page.

How to install this script:
ONE STEP TO INSTALL BASIC DATE DISPLAY:

1. Copy the coding into the BODY of your HTML document

STEP ONE: Paste this code into the BODY of your HTML document

<BODY>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number) {
return (number < 1000) ? number + 1900 : number;
}

// Join it all together
today = days[now.getDay()] + ", " +
months[now.getMonth()] + " " +
date + ", " +
(fourdigits(now.getYear())) ;

// Print out the data.
document.write(today);

// End -->
</script>