Most websites include a copyright notice somewhere in the footer, but manually updating the year every January quickly becomes repetitive.
Using a small piece of server-side code automatically updates the current year while still showing the website's original creation year. This approach keeps the footer cleaner, reduces maintenance, and provides visitors with a more polished, professional website experience.
Dim currentYear AsInteger = Date.Now.YearDim thecurrentYear Asstring = ""
Dim siteName asstring ="My Website"
if currentYear = "2026" then
thecurrentYear = "2026"
else
thecurrentYear = "2026-" & currentYear
end if
[HTML Footer]
CFFCS | CarrzSynEdit: | HTML (Hyper Text Markup Language)