Hi, I wonder if anyone can help.
I have a query like this
I am working with an access 2000 database and the date function is written in general format like 19/08/2009 22:27:20
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
I have a query like this
Code:
<%
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
Comment