title: How to display only date from datetime in laravel
body: <p>I just write a query to fetch some data from a table in Laravel but in the frontend, I need to display only date not a time</p>
  
  <pre><code>            $table_lastRecords = DB::table($table_name)
                          -&gt;join('lead_status', $status_dbvariable, '=', 'lead_status.status_id')
                          -&gt;join('users', $user_dbvariable, '=', 'users.id')
                          -&gt;select('enquiry_id','yourname',''.$table_name.'.phone','status_title as status','name', 'submitted')-&gt;where('name', $user_id)-&gt;get();
  </code></pre>
  
  <p>Where "submitted" store the DateTime but I only want to display the date in frontend. I can't do anything frontend because I use data tables and using loop I just get the data.</p>
  
  <p>Any suggestion for query please let me know how can I achieve it thanks for your time.</p>