title: MongoDB Find Query by year
body: <p>How to perform a <code>find()</code> operation with a condition like <code>{fromdt: 2016}</code> where <code>fromdt</code> is an <code>ISODate</code> in the backend. After checking stackoverflow posts, I could see only one option that uses <code>$year</code> with aggregation. But basically it uses projection and I dont get all fields in the document. So I would like to know how to achieve this without aggregation? Basically I want to apply the mentioned filter and get all documents with <strong>all</strong> fields in each.</p>
  
  <p>example document: </p>
  
  <pre><code>{
  "_id" : 501.0,
  "custid" : 1.0,
  "fromdt" : ISODate("2016-01-23T00:00:00.000Z"),
  "enddt" : ISODate("2017-01-22T00:00:00.000Z")
  }
  </code></pre>
  
  <p>Is there a better way without having to remember the format <code>2016-01-01T00:00:00.000Z</code> by just giving the year value filter as 2016? </p>