title: How to fetch records by comparing with date in flutter cloud firestore plugin?
body: <p>Working on a flutter application where I'm using firebase cloud firestore for storing all my documents. My document has a <strong>startDateTime</strong> field having a format like this...</p>
  
  <p><a href="https://i.stack.imgur.com/QtljD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QtljD.png" alt="enter image description here"></a></p>
  
  <p>I want to fetch all records whose startDateTime is greater than or equal to current date. Here is my flutter code to do this...</p>
  
  <pre><code>Firestore.instance.collection("trips")
      .where("trip.createdByUID", isEqualTo: this.userDetails['id'])
      .where("trip.startDateTime", isGreaterThanOrEqualTo: new DateTime.now().toString() )
      .getDocuments().then((string) {
          print('Firestore response111: , ${string.documents.length}');
  
          string.documents.forEach((doc) =&gt; print("Firestore response222: ${doc.data.toString()}" ));
      })
  </code></pre>
  
  <p>But this is not working. Can't able to understand how to use <code>isGreaterThanOrEqualTo</code> so that it'll work. </p>
  
  <p>Need some guidance.</p>