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.

Code: 

<%
Function CopyrightYear(SITE_CREATED_YEAR)
    '-- ==========================================================
    '-- 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)
    Else
        '-- Return Year website was created because we are still in current year!
        CopyrightYear = SITE_CREATED_YEAR
    End If
End Function
%>


My3C's
perrychicker
It's easy... it's a PSACAKE!
Back | Tell A Friend | Search this Site
© 1998 - 2010 psacake.com
Version 3.23

Send me One Million FREE Guaranteed Visitors