I have a query like this
Expand|Select|Wrap|Line Numbers
- <%
- If datediff("d", [PDnewsfield], now()) < 21 Then
- %>
- <a target=_blank title="blog" href="news</a>
- <%
- Else
- %>
- <%
- End If
- %>
I have an input field with a date picker so a user in their control panel can select a date in the future and in the past for a news event. I want news event to show on the website from the date they choose and for 21 days after that date only. This code I have above is fine in another context but if a user picks a date in the future it will show it when I dont want it to. If anyone can point me to the function I would need that would be great.
Thanks
Richard