<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">I just played with it and it works fine for my 4.0.3 version.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: jack wu &lt;jackxwu@yahoo.com&gt;<br>To: rules-users@lists.jboss.org<br>Sent: Wednesday, January 23, 2008 10:54:39 PM<br>Subject: [rules-users] Re: Date problem<br><br>
<h6 class="title">i copy the following from the Documentation. i thought it means that drools is going to auto convert the string "27-Oct-2007" into a java Date object.<br></h6><br>+++++++++<br><h6 class="title">Date</h6><div>The date format "dd-mmm-yyyy" is supported by default. You               can customize this by providing an alternative date format mask               as a System property ("drools.dateformat" is the name of the               property). If more control is required, use the inline-eval               constraint.</div><div class="example"><a rel="nofollow" name="d0e3466"></a><div class="title"><b>Example&nbsp;6.20.&nbsp;Date Literal Restriction</b></div><div class="example-contents"><pre class="programlisting">Cheese( bestBefore &lt; "27-Oct-2007" )<br>+++++++++++++++++++++++++<br></pre></div></div><br><span style="text-decoration: underline;"><br><br></span> Newsgroups: <a rel="nofollow" target="_blank"
 href="http://news.gmane.org/gmane.comp.java.drools.user">gmane.comp.java.drools.user</a><br> Date: 2008-01-23 23:32:42 GMT  (4 hours and 13 minutes ago)<br> <div> </div> <div>Were you compairing Date agaist string here, as your double quotes indicate?</div> <div><br class="webkit-block-placeholder"></div> <div>Xiandong<br><br>Sent from my iPhone</div> <div> <br>On Jan 23, 2008, at 17:33, jack wu &lt;<a rel="nofollow" ymailto="mailto:jackxwu%20%3Cat%3E%20yahoo.com" target="_blank" href="mailto:jackxwu%20%3Cat%3E%20yahoo.com">jackxwu &lt;at&gt; yahoo.com</a>&gt; wrote:<br><br> </div>  if i have several levels of java beans, the Date is not working. example:<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; m:Message( first.second.date &gt; "01-jan-2007" )<br><p> 



      </p><hr size="1">Never miss a thing.  <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>

</div><br></div></div></body></html>