title: How to get all of the past 30 days records in JSON array based their DD/MM/YYYY field?
body: <p><em>Fixed old post</em>. I am looking for clues and solutions that can help me get all the records in the JSON array from the past 30 days (based on the date_post field <strong>dd/mm/yyyy</strong>).</p>
  <p>I have used getMonth() but I am getting an unexpected output due to the format mismatch. Is there a way to do this without having to swap dd and mm?</p>
  <pre><code>[
    {
      &quot;id&quot;: &quot;5537a23050b2c722f390ab60&quot;,
      &quot;thumbImage&quot;: &quot;http://lorempixel.com/175/115&quot;,
      &quot;title&quot;: &quot;reprehenderit nisi occaecat magna eiusmod officia qui do est culpa&quot;,
      &quot;date_posted&quot;: &quot;19/04/2020&quot;
    }
  ]
  </code></pre>