title: Jackrabbit dateformat for comparison
body: <p>I am using Jackrabbit to store my documents. 
  Now I would like to search for documents that were created e.g. after a specific date using XPATH. To do so, I tried something like:</p>
  
  <pre><code>String dateString = date.toString();
  //element(*,nt:file)[@jcr:created &gt;= xs:dateTime(dateString)]
  </code></pre>
  
  <p>date is an object of class <code>java.util.Date</code><br>
  dateString gets formatted as: <em>Wed Mar 16 00:00:00 CET 2011</em></p>
  
  <p>But this is giving me an <code>InvalidQueryException</code>, indicating that the dateString is wrong:</p>
  
  <blockquote>
    <p>Invalid query: Lexical error at line
    1, column 136.  Encountered: "0" (48),
    after : ":" for statement</p>
  </blockquote>
  
  <p>So the question is: What is the correct format of a date for xs:dateTime ?</p>
  
  <p>Thanks in advance</p>