You need to sign in to do that
Don't have an account?

How do I get Last 30 Days in a SOQL Statement (Getdate(), Today()???)
I am trying to create a SOQL Statement to get data from the last 30 days
For example, I would do this on SQL Server by writing:
Select * from case where createddate > getdate -30
Is there a similar way to keep this in place with SOQL.
I have tried GetDate()-30, Today()-30 but no luck.
Hi Dave,
Do try this,
Thanks
All Answers
Hi Dave,
Do try this,
Thanks
Thanks. This worked perfectly.