title: Get difference between two dates in days using ruby
body: <p>I would like to know the time difference between two dates (<code>Time</code>/<code>DateTime</code> class) in days, i have one date created from the Date class and the other coming from my rails model, the one coming from the model is of the Time class, i want to know the number of days in between.</p>
  
  <pre><code> @current_day = Date.new
   @created_day = establishment.created_at
  </code></pre>
  
  <p>i have tried getting this result using the <code>days_ago</code> function but it doesn't take into consideration the months.</p>