title: How to compare two dates and find which date is greater using Carbon?
body: <p>I need to compare two dates and find which date is greater.  </p>
  
  <pre><code> $actual_date = Carbon::createFromFormat('d-m-Y',$night_out-&gt;actual_return_date);
   $expected_date =  Carbon::createFromFormat('d-m-Y', $night_out-&gt;expected_return_date);
  
   $days = $expected_date-&gt;diffInDays($actual_date);  // gives the days count only
  </code></pre>
  
  <p>Thanks in Advance! </p>