[rules-users] operating with date in drools

Wolfgang Laun wolfgang.laun at gmail.com
Wed Jul 3 12:41:05 EDT 2013


Both answers can be found easily in the Drools Expert manual.

Use '<' for before.

The format for Date literals is "dd-mmm-yyyy", or set
drools.dateformat for another one.

-W

On 03/07/2013, ashish6276 <ashishkumarec010 at gmail.com> wrote:
> Hi
>
>  I have  2 dates in my rule. i need to compare between those rules.  how to
> do this in drools expert.
>
> ex:  in my rule i have effective date and start date
>
> When
>
>  effective date is before start date
>
> then
>
>  I need to do something
>
>  I have  a ques what is the syntax of date which drools by default
> supports.
> is there any syntax for date in drools.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/operating-with-date-in-drools-tp4024740.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list