title: how to filter / query date using dojox.jsonPath.query
body: <p>I am referring to use <a href="http://www.sitepen.com/blog/2008/03/17/jsonpath-support/" rel="nofollow noreferrer">http://www.sitepen.com/blog/2008/03/17/jsonpath-support/</a></p>
  
  <p>This is what I am doing (spent two days but no luck):
  first drawing a datagrid with integer column and a date column and also able to sort the columns values by clicking on the column header..</p>
  
  <p>now using  dojox.jsonPath.query to query numbers using syntax like </p>
  
  <pre><code>  jsonStore = new dojox.jsonPath.query(object,"[?(@.+ field1 &gt; 500)]");//works fine
  </code></pre>
  
  <p>(using jsonStore to redraw the grid).. everything works fine till now.</p>
  
  <p>But now trying to filter out dates on the other column for dojo datagrid using jsonPath.</p>
  
  <pre><code>var dt = new Date();
  jsonStore = new dojox.jsonPath.query(object,"[?(@.effectiveDate&lt;" + dt + ")]");// does not work
  // I am trying to get the rows of the grid which have effectiveDate date less 
  // than cuurent date or any other passed 'javascript date object'
  
  layout = [{"field":"field1","name":"field1"},{"type":dojox.grid.cells.DateTextBox,"field":"effectiveDate","name":"effectiveDate","formatter":formatDate}];
  </code></pre>
  
  <p>where effectiveDate is the field for the layout of dojo datagrid. but the above does not work and throws following error
  "jsonPath: missing ; before statement: _v.effectiveDate
  
  <p>How shall i use jsonPath to query date, or my syntax is just wrong?</p>
  
  <p>Is there a way we could use dojox.jsonPath.query or dojox.json.query to query date objects in the json object using &lt;, &lt;=, >=, = operators....??</p>
  
  <p>Any help ?</p>