title: How to get date range between created_at column ( default column format : Y-m-d H:i:s ) provided in laravel tabel?
body: <p>I've been struggling with date range between (single column ) created_at column, so far i tried this</p>
  
  <pre><code>$startDate = date('Y-m-d', strtotime($request-&gt;start_date));
  $endDate = date('Y-m-d', strtotime($request-&gt;end_date));
  ....-&gt;whereBetween('created_at', [$startDate,$endDate])
  </code></pre>
  
  <p>created_at format is by default ( Y-m-d H:i:s ),
  in post data i'm getting this format ( Y-m-d )</p>
  
  <p>I know it's wrong query,but how should i think ? </p>
  
  <p>Do i've to use <code>-&gt;whereRaw()</code> ? or something with <code>-&gt;whereDate</code> ?</p>
  
  <p>Please help </p>