snippet library logo
in category
Snippet details
ID: 17
Viewed: 1582
Added: 2001-11-23
Version:
View Demo

User Rated at:
Rate This:
Snippets in this catagory         
Show Printable Version
Displays the Date. put it in the body where you want to display the date.

General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown

<!---Head--->
none

<!---Body--->


<script language="JavaScript">
        <!-- hide JavaScript
        var now = new Date();
        var month = now.getMonth();
        var date = now.getDate();
        var year = now.getYear();
        var monthname;
        if (month == 0) monthname = "January";
        if (month == 1) monthname = "February";
        if (month == 2) monthname = "March";
        if (month == 3) monthname = "April";
        if (month == 4) monthname = "May";
        if (month == 5) monthname = "June";
        if (month == 6) monthname = "July";
        if (month == 7) monthname = "August";
        if (month == 8) monthname = "September";
        if (month == 9) monthname = "October";
        if (month == 10) monthname = "November";
        if (month == 11) monthname = "December";
        var yearname;
        if (year < 1000) year += 1900;
        if (year == 2001) yearname = "2001";
        if (year == 2002) yearname = "2002";
        if (year == 2003) yearname = "2003";
        if (!yearname) yearname = year;
        document.write('<FONT FACE="ARIAL, HELVETICA, SANS-SERIF" SIZE=2 COLOR="#000000">');
        document.write("" +monthname+ " " +date+ ", " +yearname+ "");
        document.write('</FONT>');
    // end hide JavaScript -->
        </script>




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.