[rules-users] help in date time format

Esteban Aliverti esteban.aliverti at gmail.com
Thu May 13 08:14:41 EDT 2010


Maybe using a function to convert Strings to Date?

On Thu, May 13, 2010 at 9:06 AM, Sudhir M <sudhir.cse at gmail.com> wrote:

> Hi,
>
> My requirement is to compare two dates one a date object and the other
> a date literal. In comparison it should also consider time. There is
> format given for date literal (dd-mmm-yyy) but how can we add time to
> it? I tried adding time it doesn't complain but seems to ignore the
> time part in the date literal.
>
> below is the example
>
> Exam(name=="Math", examDate<="13-may-2010") this is my pattern.
>
> tried
>
> Exam(name=="Math", examDate<="15-may-2010 17:00:00")  but time ignored
> while executing.
>
> Is there any format for DateTime?
>
> Thanks,
> sudhir.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100513/6931ea0e/attachment.html 


More information about the rules-users mailing list