title: How to filter/find records in MongoDB based on Date
body: <p>I have a collection in MongoDB database that has some data and would like to filter and find data based on date (ignoring time). </p>
  
  <p><strong>Sample Data</strong></p>
  
  <pre><code>{
    "_id" : ObjectId("563a38173c2ab9248c02d89e"),
    "jobId" : "oAEKMcCIJRIAAAFQbrAR6NDd",
    "jobName" : "CheckSessions",
    "jobDesc" : "Checks and deletes expired session data",
    "jobType" : "Job",
    "startTime" : "2015-11-04 00:00:01",
    "endTime" : "2015-11-04 00:00:01",
    "domainName" : "root",
    "recurrencePeriod" : "60",
    "recurrencePeriodDesc" : "HOURS(1)"
  }
  {
    "_id" : ObjectId("563a38173c2ab9248c02d89f"),
    "jobId" : "C6wKMcCIJXoAAAFQm78R6NCm",
    "jobName" : "CheckSessions",
    "jobDesc" : "Checks and deletes expired session data",
    "jobType" : "Job",
    "startTime" : "2015-11-03 23:00:00",
    "endTime" : "2015-11-03 23:00:01",
    "domainName" : "root",
    "recurrencePeriod" : "60",
    "recurrencePeriodDesc" : "HOURS(1)"
  }
  </code></pre>
  
  <p>I used the following command to fetch data greater than a specific date but it did not give me any results. Both startTime and endTime are in EST format. Not sure what am I missing. Please guide.</p>
  
  <pre><code>db.jobs.find({"startTime" : { $gt : new Date("2015-11-03")}});
  </code></pre>