Maybe using a function to convert Strings to Date?<br><br><div class="gmail_quote">On Thu, May 13, 2010 at 9:06 AM, Sudhir M <span dir="ltr"><<a href="mailto:sudhir.cse@gmail.com">sudhir.cse@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
My requirement is to compare two dates one a date object and the other<br>
a date literal. In comparison it should also consider time. There is<br>
format given for date literal (dd-mmm-yyy) but how can we add time to<br>
it? I tried adding time it doesn't complain but seems to ignore the<br>
time part in the date literal.<br>
<br>
below is the example<br>
<br>
Exam(name=="Math", examDate<="13-may-2010") this is my pattern.<br>
<br>
tried<br>
<br>
Exam(name=="Math", examDate<="15-may-2010 17:00:00") but time ignored<br>
while executing.<br>
<br>
Is there any format for DateTime?<br>
<br>
Thanks,<br>
sudhir.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>