how to add filter condition exactly after 30 days from todays date

Aishwarya20
Tera Contributor

Hi,

I want to write filter condition of date after 30 days from now, please help me.

1 ACCEPTED SOLUTION

Abhijit4
Mega Sage

Hi,

You can achieve it like below, the digit in the image is not clear, I have added it is 29 and 31. The logic here is "Due Date after 29 from today and before 31 days from now" which will give us records where due date is 30(after 29 and before 31 is 30) days.

find_real_file.png

Let me know if you have any further queries.

 

Please mark this as Correct or Helpful if it helps.

 

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

View solution in original post

24 REPLIES 24

How can this be used as a query? 
for example :   sys_created_onRELATIVEGT@dayofweek@ahead@30  this can be used in encoded query???

Hi Saurav, 

 

I want to check my recent import is from 2 weeks before. 

find_real_file.png

 

hello,

If recent import is from date/time field you can use the below:-

sys_created_onRELATIVELT@dayofweek@ahead@14 replace sys_created_on with recent_import

find_real_file.png

Thanks.

Abhijit4
Mega Sage

Hi,

You can achieve it like below, the digit in the image is not clear, I have added it is 29 and 31. The logic here is "Due Date after 29 from today and before 31 days from now" which will give us records where due date is 30(after 29 and before 31 is 30) days.

find_real_file.png

Let me know if you have any further queries.

 

Please mark this as Correct or Helpful if it helps.

 

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Hi,

It is working fine. but 90 days encoded query not working in script.