title: Ruby return only date older than 2 days ago - undefined method `days' for 2:Integer
body: <p>I array below I want to get only days which are older than 2.days.ago</p>
  
  <pre><code>data = ["2020-02-21T07:52:14.114+0100",
   "2020-02-19T13:20:50.539+0100",
   "2020-02-11T12:36:16.565+0100",
   "2020-02-17T20:06:53.312+0100",
   "2020-02-04T09:42:30.754+0100",
   "2020-01-29T13:46:16.033+0100",
   "2020-02-18T11:15:12.894+0100"]
  </code></pre>
  
  <p>I'm trying to do this with code below:</p>
  
  <p><code>data.select { |data| data if DateTime.parse(data) &gt; 2.days.ago }</code></p>
  
  <p>But I'm getting an error:</p>
  
  <blockquote>
    <p>NoMethodError: undefined method `days' for 2:Integer</p>
  </blockquote>