Gossamer Forum
Home : Products : Links 2.0 : Customization :

<%if date eq "1-Jan"%> instead of <%if date eq "1-Jan-2003"%>

Quote Reply
<%if date eq "1-Jan"%> instead of <%if date eq "1-Jan-2003"%>
Hi
Some of my pages depend on the day of the year like :

<%if date eq "1-Jan-2003"%><%include 01_01.html%><%endif%>
<%if date eq "2-Jan-2003'%><%include 01_02.html%><%endif%>
etc ...

but when 2004 arrived it did not work anymore. I would like it to be updated every year.
If i do like this, it does not work :

<%if date eq "1-Jan"%><%include 01_01.html%><%endif%>
<%if date eq "2-Jan'%><%include 01_02.html%><%endif%>
etc ...

Can someone help me to make it work ??? Tanx if you know ;)