How to write this query to extract records with date fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 03:43 PM
I have a scoped application and a scheduled job where I am writing a query to get all the records that would pass the below condition:
IToday is within 30 days of the start date, and if today is before the start date
How do I do the within 30 days of the start date and also check if today is before the start date.
Thanks so much

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 03:52 PM
You can build a query in the condition builder as below and then copy this query and use in an EncodedQuery in scheduled job
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 10:25 PM
Thanks so much . for me the date field has a value of 2024-04-12 and that particular record doesnt show up when I apply the above query.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2024 09:27 AM
Can you post a screenshot of how you are using it?
Please mark this response as correct or helpful if it assisted you with your question.