sorting problems with "Ultimate date plugin"

sorting problems with "Ultimate date plugin"

mbcl88mbcl88 Posts: 13Questions: 5Answers: 0
edited December 2018 in Free community support

Hey,

like i sad i have problem with sorting my dates, i have dates like 01.12.2018, 11.12.2018, 12.11.2018, etc

so i tried with that plugin but cant figure out how to implement ($.fn.dataTable.moment( 'd.m.Y' );) this in my js code, my code looks like below, where i made mistake?

<script>
    $(document).ready(function() {
    $.fn.dataTable.moment( 'd.m.Y' );
        $('#test').DataTable( {
         responsive: true,
       "info": false,
       "paging": false,
       "columnDefs": [ {
       "targets": 4,
       "orderable": false
     } ],
     columnDefs: [
       { type: 'any-number', targets: 0 }
     ],
       "language": {
                "url": "//cdn.datatables.net/plug-ins/1.10.19/i18n/Slovenian.json"
            },
         "order": [[ 0, "desc" ]],
         } );

    } );
    </script>

Answers

This discussion has been closed.