title: how to change the date format taken from the database in data table
body: <p>Im creating Laravel Project and have a data table that show some data, one of the data is date, the format show in data table is equal with date data in database (YYYY-MM-DD). I want to show it in format <strong><code>04 Feb 2020</code></strong> or <strong><code>04-02-2020</code></strong>.
  here is my View code</p>
  <pre><code>var table = $('.data-table').DataTable({
              processing: true,
              serverSide: true,
              ajax: &quot;{{ route('home.index') }}&quot;,
  
              columns: [{
                      data: 'DT_RowIndex',
                      name: 'DT_RowIndex',
                      orderable: false,
                      searchable: false,
                  },
                  {
                      data: 'title',
                      name: 'title',
                      orderable: false,
                  },
                  {
                      data: 'content',
                      name: 'content',
                      orderable: false,
                  },
                  {
                      data: 'progress',
                      name: 'progress'
                  },
                  {
                      data: 'status',
                      name: 'status'
                  },
                  {
                      data: 'finish_date',
                      name: 'finish_date'
                  },
                  {
                      data: 'action',
                      name: 'action',
                      orderable: false,
                      searchable: false
                  },
              ]
          });
  </code></pre>
  <p>here is my controller</p>
  <pre><code>if ($request-&gt;ajax()) {
              $data = Post::where('user_id', Auth::id())-&gt;latest()-&gt;get();
              return Datatables::of($data)
                  -&gt;addIndexColumn()
                  -&gt;addColumn('action', function ($row) {
  
                      $btn = '&lt;a href=&quot;javascript:void(0)&quot; data-toggle=&quot;tooltip&quot;  data-id=&quot;' . $row-&gt;id . '&quot; data-original-title=&quot;Edit&quot;  class=&quot; edit btn btn-primary btn-sm editProduct&quot;&gt;&lt;span class=&quot;fas fa-pen&quot;&gt;&lt;/span&gt;&lt;/a&gt;';
  
                      $btn = $btn . ' &lt;a href=&quot;javascript:void(0)&quot; data-toggle=&quot;tooltip&quot;  data-id=&quot;' . $row-&gt;id . '&quot; data-original-title=&quot;Delete&quot; class=&quot;btn btn-danger btn-sm deleteProduct&quot;&gt;&lt;span class=&quot;fas fa-trash&quot;&gt;&lt;/span&gt;&lt;/a&gt;';
  
                      return $btn;
                  })
                  -&gt;rawColumns(['action'])
                  -&gt;make(true);
          }
  
          return view('index');
  </code></pre>
  <p>can I change the date format?</p>