KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Display Date Format : mm-dd-yyyy (date-eu from datatables) #2712

Closed Vijay opened this topic on on Jun 7, 2022 - 2 comments

Vijay commented on Jun 7, 2022

Hello KR,

I am preparing a grid using the DataTables Widget.

The issue in sorting of date field (dd-mm-yyyy)

  1. In databse the datetime format is "yyyy-mm-dd h:i:s"
  2. I am successfully able to display "dd-mm-yyyy" format
  3. the field is not sorting properly! when I sort the date the sorting is not doing well.

in datatable plugin there is "date-eu" plugin (https://datatables.net/plug-ins/sorting/date-eu)

I have no idea how to integrate this plugin or is there a inbuilt way around to fix this?

Sebastian Morales commented on Jun 7, 2022

Pls try this solution in a previous thread:

Datatables - sorting by date

Vijay commented on Jun 7, 2022

Thanks it worked.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

DataGrid