title: Laravel Eloquent where between two dates are null
body: <p>I'm trying to get values between two dates. I have some data between dates but it returns empty.</p>
  
  <pre><code>$oneMonthAgo = date('Y-m-01 00:00:00', strtotime('-1 month'));
  $thisMonth = date('Y-m-01 00:00:00', strtotime('0 month'));
  $nextMonth = date('Y-m-01 00:00:00', strtotime('+1 month'));
  
  
  $cezalar = DB::table('cezalar')
      -&gt;where('ceza_tarih', '&gt;=', $oneMonthAgo)
      -&gt;where('ceza_tarih', '&lt;', $thisMonth)
      -&gt;get();
  
  return $cezalar;
  </code></pre>