title: Comparing dates in Lotus Notes search formulas
body: <p>In the code below I'm trying to find all the documents in which the date in the field duration is before the today's date</p>
  
  <pre><code>Set no = db.Search("Form=""formname"" &amp; state=""3"" &amp; duration&lt;Today()", time, 0)
  </code></pre>
  
  <p>The field duration is of Date/Time type.</p>