title: Get documents which expired before today in MongoDB
body: <p>I am using <strong>MongoDB 2.6</strong> and I'm making a query that filter the documents by expired date. I want to know which documents expired before today. My persisted data represent publications.</p>
  
  <p>I've made some queries but it doesn't return documents. I know there are many documents who satisfy this condition.</p>
  
  <p>I tried two query but no one works:</p>
  
  <p>1.</p>
  
  <pre><code>{
  "domain.ApplicationCase.fields.ExpireDate": { $gte : {
   $currentDate: {
      lastModified: true,
      "cancellation.date": { $type: "timestamp" }
   }}}    
  }
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>{
  "domain.ApplicationCase.fields.ExpireDate": { $gte : new Date()}    
  }
  </code></pre>
  
  <p>Part of document records:</p>
  
  <pre><code>{
      "_id" : "1234546",
      "fields" : {
          "Orchestration" : "default",
          "Segmentation" : "PFI",
          "MatchKey" : "1",
          "UserID" : "001"
      },
      "domain" : {
          "ApplicationCase" : {
              "_id" : null,
              "fields" : {
                  "ExpireDate" : "2015-11-13T13:47:26Z",
  ....
  </code></pre>
  
  <p>What's wrong?</p>