datatable order european data
HI i have a datatable this is the html :
- <!-- Datatables
- <script>
- $(document).ready(function() {
- var handleDataTableButtons = function() {
- if ($('#datatable-buttons').length) {
- $('#datatable-buttons').DataTable({
- dom: 'Bfrtip',
- buttons: [
- {
- extend: 'copy',
- className: 'btn-sm'
- },
- {
- extend: 'csv',
- className: 'btn-sm'
- },
- {
- extend: 'excel',
- className: 'btn-sm'
- },
- {
- extend: 'pdfHtml5',
- className: 'btn-sm'
- },
- {
- extend: 'print',
- className: 'btn-sm'
- },
- ],
- responsive: true
- });
- }
- };
- TableManageButtons = function() {
- 'use strict';
- return {
- init: function() {
- handleDataTableButtons();
- }
- };
- }();
- $('#datatable').DataTable( {
- "order": [[ 0, "desc" ]]
- } );
- $('#datatable-keytable').DataTable({
- keys: true
- });
- $('#datatable-responsive').DataTable();
- $('#datatable-scroller').DataTable({
- ajax: 'js/datatables/json/scroller-demo.json',
- deferRender: true,
- scrollY: 380,
- scrollCollapse: true,
- scroller: true
- });
- $('#datatable-fixed-header').DataTable({
- fixedHeader: true
- });
- var $datatable = $('#datatable-checkbox');
- $datatable.dataTable({
- 'order': [[ 1, 'asc' ]],
- 'columnDefs': [
- { orderable: false, targets: [0] }
- ]
- });
- $datatable.on('draw.dt', function() {
- $('input').iCheck({
- checkboxClass: 'icheckbox_flat-green'
- });
- });
- TableManageButtons.init();
- });
- </script>
- <!-- /Datatables -->
I want order by date ,because the date is in italian format dont work properly , how can i order ?