Hi guys,
How can I create a site-condition that compares the MODIFY_DATE to be greater than 1 year?
By default, I can create a condition to compare with other date, not to a pre-defined period.
Any ideas?
You will have to create a condition macro (not site-defined condition). This will be coded in SPEL. The now() function will come in handy. Take a look at this for ideas:CA SDM::.SPEL::. Now
Thanks for your help Lindsay..
Do you have any example of the SPEL code that does something like this?
Thank you again.
hi,
date converting examples could be found here: CA Service Desk date function in spell code
in your situation try this one:
date znow;znow = now();if ((int)MODIFY_DATE >= (int)((int)znow - (365 * 24 * 3600))) {set_return_data(TRUE);} else {set_return_data(FALSE);}
Regards.