Frequently Asked Questions

Question?

How do I always display the current year on my webpage - for example next to a copyright statement

Return To FAQ Main Page

Answer...

There are a couple of different ways

You can use a simple PHP Script to echo the current year:

display current year with php

A second method for displaying the current year is to use some JavaScript. This works without server side code.

display current year with javascript

If you want to display the copyright date in the format "Copyright 20XX-20XX" style here are two script that will do that

JavaScript

PHP

 

Learn How To Create A Website

Whether your looking to learn about web design as a career or are looking to learn web design to create a website for your business, organization or personal project we have a great collection to web design tutorials and courses ready for you to learn with. These web design videos are free and available online for everyone to view. Click Here to view our web design tutorials on Youtube

Our web design tutorials will teach you how to use HTML and CSS to design website and how to use tools such as Adobe Dreamweaver and Microsoft Expression to create and publish websites. Each of our web design courses is a step by step guide to publishing a website, using our website templates as learning projects - you actually see us create a website from beginning to end.

Visit Our Training Page For More Information