Hi afinir!
It Works! :-) Thanks!
What should i do, when i want to show all the links, that exired in one week (7 days)?
So, when today is 2003-08-05, i want all links, that expires from today until 2003-08-12
Is that possible?
Thanks in advance!
Coyu
In Reply To:
I didn't realise you wanted to use the expire within the search form. I *think* you can do this more simply than using the global. If you use a select dropdown, for each option you could have something like this
(you will need this tag somewhere near the top of your page unless you are using a global to define today
<%set today=GT::Date::date_get%>) <select name=name="
Expire_Date-lt"> (this is for Expire_Date less than or equal to - change it to "Expire_Date" for exact values)
<option value="
<%GT::Date::date_add($today,'1')%>">1 day
<option value="
<%GT::Date::date_add($today,'2')%>">2 days
I haven't tested this so I'm not sure whether this less than query works with dates but I assume it does.