Guide to creating a web site, web design, web development, internet marketing, promotion, html tips and tricks, javascript and more.

Your Guide to Professional
Web Site Design and Development

HTML Tips
HTML Codes
Web Development
Web Design Tips
JavaScript Codes
216 Web Safe Colors
CSS Tutorial
JavaScript Tutorial
ASCII Character Codes

Offering Free Javascript Tips, Snippets and Codes

Open Directory Projectfree ebooksfree articles
web site design development internet marketing and promotion tutorials

| Web Site Development | HTML Codes | HTML Tips | Web Design TipsJavascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial |

webmaster resources

Date

Displaying the date within your web page is a good way to spice up your web site and give it a more professional appearance. The following JavaScript code will display the date on your web in the following format:





Place this code between your <HEAD> and </HEAD> tags:

<SCRIPT language=Javascript>
<!-- Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development
var today_date= new Date()
var month=today_date.getMonth()
var today=today_date.getDate()
var year=today_date.getFullYear()

var months = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
// -->
</SCRIPT>


Place this code where you'd like the date to appear:

<SCRIPT language=Javascript>
<!-- Script courtesy of Web-Source.net - Your Guide to Professional Web Site Design and Development
document.write(months[month]+" "+today+", "+year)
// -->
</SCRIPT>


You can change the font style and color by enclosing the above JavaScript code with your font tags.






Submit your JavaScript code snippets. We'll credit you and give you a link to your website.