Can I filter a datetime field with a javascript snippet?

tt-jtw
Kilo Expert

I have a report on which I want to dynamically change the datetime filter based on other conditions.   I can write a script include to return the datetime value to filter.   But am I able to create a filter condition on a datetime field that uses javascript?

I know I can do this on string field types -- like:

Name | is | javascript:mycustomfunction();

But on datetime fields, the condition builder suggests preset values like Today, Yesterday, Tomorrow, etc..   I don't see an opportunity to type in a "javascript: ..." string.

6 REPLIES 6

Thank you Troy,

one small thing: this only works on a Classical UI.

Jake Jeon
Tera Contributor