title: Laravel - format date from Mysql database with carbon
body: <p>In my Laravel project I have a MySQL database table with the following column:</p>
  
  <pre><code> |   requested_at  |
   2018-02-03 12:00:00
   2018-03-03 11:00:00
  </code></pre>
  
  <p>I want to get all items from this column where the timestamp (requested_at) is older than 60 days:</p>
  
  <pre><code>$now = Carbon::now ();  
  
  $60days  = DB::table('exampletable')-&gt;where('requested_at', '=', $now-&gt;subDays(60))-&gt;get();
  </code></pre>
  
  <p>For my following code I need to format the Date format from my column <code>requested at</code>. </p>
  
  <p>I only want to get the date like this <code>2018-03-03</code> without the time.</p>
  
  <p>I play around with some carbon methods but It didn't work at all:</p>
  
  <pre><code>$format60 = Carbon::createFromFormat('Y-m-d', $60days);
  </code></pre>