Frequently Asked Questions
Question?
How do I always display the current year on my webpage - for example next to a copyright statement
Answer...
There are a couple of different ways
You can use a simple PHP Script to echo the current year:
A second method for displaying the current year is to use some JavaScript. This works without server side code.
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