title: Solr 6 how to use dateRange math with localParam op
body: <p>1) I have a <code>dateRange</code> type field in solr 6, 
  It contains date ranges.</p>
  
  <p>2) following query will give all the matching record which has date range from <strong>1st jan 2017 To 31st dec 2017</strong>.</p>
  
  <p><code>fq={!field f=dateRange op=Contains}[2017 TO 2017]</code></p>
  
  <p>3) Following 2 queries are also working</p>
  
  <p><code>fq=dateRange:[* TO NOW-1DAY]</code></p>
  
  <p><code>fq={!field f=dateRange op=Contains}[2017-07-08 TO 2017-08-21]</code></p>
  
  <p><strong>My Question is :</strong></p>
  
  <p>Now I wants to fetch all date range from <strong>1st Jan 2017 to 2017 -1DAY</strong>
  I have tried with following query but getting error.</p>
  
  <p><code>fq={!field f=dateRange op=Contains}[2017 TO 2017-1DAY]</code></p>
  
  <blockquote>
    <p>"msg":"Couldn't parse date because: Improperly formatted date:
    2017-1DAY",</p>
  </blockquote>
  
  <p>Why dateRange math with localParam op is not working?</p>