title: Query firebase data by timestamp month
body: <p>So i have my records in firebase cloud firestore like this :</p>
  
  <pre><code>[  
     {  
        "category":"drinks",
        "expensetype":"card",
        "id":"5c673c4d-0a7f-9bb4-75e6-e71c47aa8d1d",
        "name":"JJ",
        "note":"YY",
        "price":57,
        "timestamp":"2017-11-30T22:44:43+05:30"
     },
     {  
        "category":"drinks",
        "expensetype":"card",
        "id":"85731878-eaed-2740-6802-e35e7758270b",
        "name":"VV",
        "note":"TTT",
        "price":40,
        "timestamp":"2017-12-30T22:41:13+05:30"
     }
  ]
  </code></pre>
  
  <p>I want to query data with the timestamp and get data that belongs to a particular month or date. </p>
  
  <p>For example if I click a particular month (say March) in my calendar, I want only the data of that particular month in my results. How can i do that?</p>
  
  <p>I have saved the date using 
  <code>firebase.firestore.FieldValue.serverTimestamp()</code></p>
  
  <p>Thanks in advance for any help.</p>
  
  <p>Edit : </p>
  
  <p>This is how I form my query</p>
  
  <pre><code>var spendsRef = this.db.collection('spend', ref =&gt; ref.where("timestamp", "&gt;", "12-12-2017"));
  
  this.items = spendsRef.valueChanges();
  </code></pre>
  
  <p>But it still returns me all the data in Database</p>
  
  <p>Answer : </p>
  
  <pre><code>var todayDate = new Date("Tue Jan 02 2018 00:00:00 GMT+0530 (IST)") // Any date in string
  var spendsRef = this.db.collection('spend', ref =&gt; ref.where("timestamp", "&gt;", todayDate));
  this.items = spendsRef.valueChanges();
  </code></pre>