title: mongoose : How to find by date that start with a given input (like autocomplete : 25/01/2... , 25/01..)
body: <p>i have objects stored in db like :</p>
  <pre><code>[
     {
        &quot;created_at&quot; : ISODate(&quot;2020-03-19T07:27:32.158Z&quot;),
     },
     {
        &quot;created_at&quot; : ISODate(&quot;2020-03-19T12:10:19.191Z&quot;),
     }
  ]
  </code></pre>
  <p>I would like to find data by <strong>created_at</strong> (that start with) like autocomplete : <strong>25...</strong> , <strong>25/01...</strong> , <strong>25/01/202...</strong></p>
  <p>I have an input date that i can get data in the format : <strong>25/01/2021</strong> : <strong>dd/mm/yyyy</strong>.</p>
  <p>the result can be <strong>25</strong> or <strong>25/0</strong> ,</p>
  <p>in this case i need to find data that <code>created_at : start with 25/0</code></p>
  <p>it's like the method : <code>$regex: &quot;^&quot; + date</code> but <strong>with dates</strong></p>