title: How to Find and compare Dates on Official MongoDB Go Driver?
body: <p>I am new to mongodb-go-driver and i am stuck.</p>
  
  <p>I have a date inside a struct like:</p>
  
  <pre><code>type Email struct {
      Date        string            `json:"date"`
  }
  </code></pre>
  
  <p>the Dates on my mongoDB and mapped in my struct have the values like "02/10/2018 11:55:20".</p>
  
  <p>I want to find on my DB the elements that Date are after an other date, i'm trying this but the response is always null.</p>
  
  <pre><code>initDate, _ := time.Parse("02012006", initialDate)
  cursor, err := emails.Find(context.Background(), bson.NewDocument(bson.EC.SubDocumentFromElements("date", bson.EC.DateTime("$gt", initDate.Unix()))))
  </code></pre>
  
  <p>what am i doing wrong?</p>