DataTable moments is not working for sorting Date-Time column?
<p>Please do not mark as duplicate as I haven't find solutions anywhere.</p>

<p>Following line is not working to sort date and time together in <code>DataTable</code>.</p>

<p><a href="https://i.stack.imgur.com/7a7a7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7a7a7.png" alt="enter image description here"></a></p>

<p>Secondly, I have used following code to make sorting working but it doesn't:</p>

<pre><code>$.fn.dataTable.moment('HH:mm dd/mm/YY');
    //$.fn.dataTable.moment( 'DD-MM-YYYY HH:mm' );
</code></pre>

<p>and for <code>DataTable</code> initialization I have used following code:</p>

<pre><code>$('.dataTable').DataTable({
    ordering: true,
    paging: true,
    searching: true,
    dom: 'Bftripl',
    buttons: [
        'excelHtml5',
        'csvHtml5',
        'pdfHtml5'
    ],
    "columnDefs": [
        //{ "type": "date-euro", targets: 1 }
        //{ "sType": "date-uk", targets: 1 }
    ]
});
</code></pre>

<p>I have added file : <code>datetime-moment.js</code></p>

<p>None of the code working for sorting out the <code>date column</code>, so please anybody help or provide example for it on jsFiddle.</p>

<p>Thanks Friends in advanced:)</p>

<p>For <strong>Anan</strong> your code gives me following output:
after using your updated code but can't pass data as I am feeding data into table using php....</p>

<pre><code>$.fn.dataTable.moment( 'HH:mm DD/MM/YYYY' );
$('.dataTable').DataTable({
    ordering: true,
    paging: true,
    searching: true,
    dom: 'Bftripl',
    buttons: [
        'excelHtml5',
        'csvHtml5',
        'pdfHtml5'
    ]
});
</code></pre>

<p>but unfortunately didn't worked:(
<a href="https://i.stack.imgur.com/6K4bq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6K4bq.png" alt="enter image description here"></a></p>