Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor
Copyright Date How To Automatically Keep Current jereece msg:381490 1:15 am on Mar 21, 2005 (gmt 0) At the bottom of each of my web pages, I have a copyright and 2001 - 2005. Is there a script I can use instead of 2005 so that it will automatically change to the current year. This way when 2006 rolls around, I don't have to change each page.
I tried using Includes in a footer, but kept having problems because not all of my pages are PHP. I inherited this web site and don't have time to go back and make each page PHP and use includes footers. So I was hoping a simple script existed to show the current year.
PatrickDeese msg:381491 2:14 am on Mar 21, 2005 (gmt 0)
If you are using a PHP include, I would consider using htaccess to parse your HTML files as php, and then use an include. lovethecoast msg:381492 2:32 am on Mar 21, 2005 (gmt 0)
If you're using asp, just put DatePart("yyyy", Now) where you want the current year to appear.
jorj msg:381493 6:22 am on Mar 21, 2005 (gmt 0)
Years ago, I did a graphic on a website for the copyright information. Once a year, I updated the graphic. jereece msg:381495 1:47 pm on Mar 21, 2005 (gmt 0)
var theDate=new Date() document.write(theDate.getFullYear()) </script>