Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
MNicolas
Contributor III
Contributor III

Button to select date inferior/superior

Hi all,

I want to select the dates inferior to my previous week

I added a button with Selection on a field. I can select one special date  but how can I put the sign inferior  ?

I tried ='<' & (today()-8)*1 and much more but it didn't work

MNicolas_0-1590582266960.png

Thanks for your help

Labels (1)
2 Replies
Anil_Babu_Samineni

I would rather use below as search string

='>'&Date(Max(Date-7),'DD-MM-YYYY')&'<='&Date(Max(Date),'DD-MM-YYYY')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MNicolas
Contributor III
Contributor III
Author

In the filter it work fine, but in the button I tried ='<'& Date(today()-7,'DD/MM/YYYY') or ='<'& (today()-7)*1 and get nothing... (same with max date)

Even ='<20/05/2020' or <20/05/2020 doesn't work

MNicolas_1-1590661176626.png works

MNicolas_0-1590663044326.png nothing happens