Datetime-moment.js _verified_ Download -

: Once a format is registered, the plugin scans your table columns. If a column matches that format, it automatically applies the correct sorting logic.

: https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment.min.js datetime-moment.js download

: //cdn.datatables.net/plug-ins/1.13.6/sorting/datetime-moment.js 2. Install via NPM (For Modern Build Systems) : Once a format is registered, the plugin

$(document).ready(function() // 1. Register the date format with the plugin $.fn.dataTable.moment('DD/MM/YYYY HH:mm'); // 2. Initialize the DataTable $('#example').DataTable(); ); Use code with caution. Why Use datetime-moment.js? : Once a format is registered

To enable automatic sorting, you must register the specific date formats you intend to use in your table. javascript

There are several ways to integrate datetime-moment.js into your project, depending on your environment. 1. Download via CDN (Recommended for Browsers)

: It supports any format Moment.js can parse, including localized dates and times.