title: How to index a date without day & time in Apache Solr
body: <p>In my database the dates are like <code>1973-01</code>. They are stored as string value. If  I have to index this using Apache Solr then how would I do it.</p>
  
  <p>I have written the below in my schema.xml:</p>
  
  <p><code>&lt;field name="pubdate" type="tdate" indexed="true" stored="true" multiValued="false" /&gt;</code></p>
  
  <p>I have also changed all the dates like <code>1973-01Z</code>. But I am still getting an error:</p>
  
  <p><code>org.apache.solr.common.SolrException: Invalid Date in Date Math String:'1973-01Z'</code></p>
  
  <p>I believe Solr only accepts date like <code>1995-12-31T23:59:59Z</code></p>
  
  <p>Can anyone help?</p>