Tag: DataTables

  • Simple way to sort dates in any format with jquery.datatables

    Simple way to sort dates in any format with jquery.datatables

    Initially, I was formatting the date in my table using any format I liked. However, I soon realized that this would ruin sorting. For example, if you have a table with dates formatted as “dd/mm/yyyy” and “mm/dd/yyyy”, datatables will sort them incorrectly because it will sort them based on their underlying serial numbers. Then I…

  • 📅 How to Format and order dd-mm-yyyy Dates in jQuery DataTables 📅

    📅 How to Format and order dd-mm-yyyy Dates in jQuery DataTables 📅

    If you’ve ever worked with DataTables, you may have encountered issues with how dates are displayed. By default, DataTables will display dates in a format that may not be easily readable or sortable. However, with a few simple tweaks, you can format your dates to display exactly how you want them. First of all your…