Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Unable to sort Date and time column in Datatables

$
0
0

function initiallizeDataTable()
        {
            $('#listTable').dataTable({
"scrollY":        "50vh",
"scrollCollapse": "true",
"dom": 'frtipB',
"stateSave": false,
"ordering": false ,
"columnDefs": [
            {
                targets: 1,
                className: 'noVis'
            }
        ],
"buttons": [
{extend:'excel',
  text:'Export to Excel',
    exportOptions: {
                columns: [0,1,2,3,4,5]
            }
  }
          ],
   aaSorting: [[0, 'asc']]
//"order": [[ 0, "desc" ]]
});
        }

It is soting like
02/11/2018
02/12/2018
05/11/2018

I want like
02/11/2018
05/11/2018
02/12/2018

Thanks in advance
Shristy


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>