title: Have to write a query converting Epoch column to timestamp in Mongodb
body: <p>I have a collection that is having updated timestamps in epoch milliseconds. I have a python config that gets start date and end date parameters.</p>
  <p>I have to form a query to filter this data</p>
  <pre><code>_id:61cd51d8e788b021539c1a6e
  id:null
  createTimestamp:1640845784796
  updateTimestamp:1640845784796
  deleteTimestamp:null
  </code></pre>
  <p>python.yaml
  start date - 16-Feb-2022 (something like this)</p>
  <pre><code>{createTimestamp: {
          $gte: ISODate(&quot;2022-02-16T00:00:00.000Z&quot;),
          $lt: ISODate(&quot;2022-02-17T00:00:00.000Z&quot;)
      }
  }
  </code></pre>
  <p>is there a way to convert the start date to epoch and pass that to Mongoquery?</p>
  <p>something in python</p>
  <pre><code>startdate = int(datetime.fromisoformat(&quot;2022-01-01&quot;).timestamp())*1000 
  enddate = int(datetime.fromisoformat(&quot;2022-02-16&quot;).timestamp())*1000                                                                                                       
  query =  {&quot;updateTimestamp&quot;:{&quot;$gte&quot;:startdate,&quot;$lt&quot;:enddate}}
  # myresult = collection.find().limit(5)     
  myresult = collection.find(query)
  </code></pre>
  <p>still, listing whole data? any issue here?</p>