You need to sign in to do that
Don't have an account?
kris chit
Retrun values between 175th -185th days back from today in SOQL
Hi,
There is a field called "Display_LastModifiedDate" on Orders. I am trying to retrieve orders with "Display_LastModifiedDate" between 175th -185th days back from today dynamically. I cannot hardcode 175th and 185th dates because if I query it after a week the 175th and 185th dates change. Please guide me.
Thanks
There is a field called "Display_LastModifiedDate" on Orders. I am trying to retrieve orders with "Display_LastModifiedDate" between 175th -185th days back from today dynamically. I cannot hardcode 175th and 185th dates because if I query it after a week the 175th and 185th dates change. Please guide me.
Thanks
You can do something like below .
Please mark it as BEST ANSWER if it helps you .
All Answers
You can do something like below .
Please mark it as BEST ANSWER if it helps you .
Thanks for the reply. Shouldn't it be Select id from Order where Display_LastModifiedDate >= :d1 and Display_LastModifiedDate <= :d2
This is same query i have written above .