Janice Smith
asked on
Date formula that goes back 5 years
Hello Experts,
Is there a way to create a date formula that will pull records from the current date back 5 years? The formula should look at a date time field on the report and retrieve records that go back 5 years from the current date. The report is querying an Oracle database. Any suggestions? Thanks.
Is there a way to create a date formula that will pull records from the current date back 5 years? The formula should look at a date time field on the report and retrieve records that go back 5 years from the current date. The report is querying an Oracle database. Any suggestions? Thanks.
ASKER
Thanks...
I used the following formula:
{CASE.FILE_DT} >= DateAdd('2010'-5,CurrentDa te)
and I get the error message that "A number, currency amount, date, time, or date-time is required here."
I used the following formula:
{CASE.FILE_DT} >= DateAdd('2010'-5,CurrentDa
and I get the error message that "A number, currency amount, date, time, or date-time is required here."
Where do you get that?
You have to add that to the selection filter
REPORT --> SELECT EXPERT
mlmcc
You have to add that to the selection filter
REPORT --> SELECT EXPERT
mlmcc
ASKER
Yes, I did add it to the select expert and that's the error that comes up
i see the issue.
Don't use 2010 use yyyy
You are telling dateadd to add years
mlmcc
Don't use 2010 use yyyy
You are telling dateadd to add years
mlmcc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you. This works perfectly.
{DateField} >= DateAdd('yyyy'-5,CurrentDa
mlmcc