1// if You are using the Datatable data as json format you can format the date
2// where are data is create by php With date('dd/mm/yyyy',strtotime($date));
3
4//Another solution is
5
6<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/plug-ins/1.10.20/sorting/datetime-moment.js"></script>
7
8<script>
9$('#rides').DataTable({ "scrollX": true, "autoWidth": false, columnDefs: [ { targets: [0], render: $.fn.dataTable.render.moment( 'DD/MM/YYYY' ) } ], });
10
11</script>
12
13//targets: [0] is your colum index for example
14
15colum1 | Colum 2 | colum 3
16it will choose colum1 as zero index