Dispay a Dynamic Copyright Date
- Dispay a Dynamic Copyright Date
This function is useful for displaying the copyright date at the bottom of a web page. On many sites you will see invalid copyright dates. This function allow you to dynamically display either the current year's date or a range of
dates from when the site was first created.
'-- Returns String of year web site was create to current year
If Year(Now) > SITE_CREATED_YEAR Then
'-- Return year website was created PLUS the current year
CopyrightYear = SITE_CREATED_YEAR & " - " & Year(Now)
'-- Return Year website was created because we are still in current year!
CopyrightYear = SITE_CREATED_YEAR
© 1998 - 2017
howto reference examples samples source code tips ASP VBScript