I am also interested in this, though my requirement specifies
DAY/WEEK/MONTH/YEAR, so it's a bit more complex.

It appears from the documentation that the way to compare dates without an
eval is:
Cheese( bestBefore < "27-Oct-2009" )

So, i reckon...

a function that subtracts a number of years/months/weeks/days using
GregorianCalendar and returns a date, can be compared with, in your case,
$now, provided that it is a String in that form.

But I'll work on it in the meantime, and get back to you if I work out
something.
Please let me know if you work out something without eval() too, thanks.
-- 
View this message in context: 
http://n3.nabble.com/AGE-problem-tp215215p326884.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to