Maxime C Posted June 22, 2012 Posted June 22, 2012 Hi, I need to set a range for a perform find, this range needs to be from 2 months ago until today's date. Do you know how could I create this "2 months ago" date If we are 1/22/12, I would like to set a variable as 11/22/11 Any help would be appreciated, Thank you
No_access Posted June 22, 2012 Posted June 22, 2012 Try this , where "thisdate" is your date field... Date ( Month ( thisdate )-2 ; Day (thisdate ) ; Year ( thisdate ) )
comment Posted June 22, 2012 Posted June 22, 2012 Try something like: Enter Find Mode [} Set Field [ YourTable::Datefield ; Let ( t = Get (CurrentDate) ; Date ( Month ( t ) - 2 ; Day ( t ) ; Year ( t ) ) & "..." & t ) ] Perrrform Find []
Maxime C Posted June 22, 2012 Author Posted June 22, 2012 Thank you it worked, I was scared about January and February and the back decrease year impact but everything work fine. Thx
Recommended Posts
This topic is 4537 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now