PHP date function strtotime(d-m-Y) its not getting sort in Grid

PHP date function strtotime(d-m-Y) its not getting sort in Grid

SalmanSaluSalmanSalu Posts: 1Questions: 1Answers: 0

I am Developing application inLaravel 5.4 I'm Using DataTable Grid its not sorting d-m-Y format PHP to convert date like dd-mm-yyyy . Its not properly sorting the Date Column . But in database its in YYYY-MM-DD . In this format sorting is working Fine. User wants to change Date Format like DD-MM-YYYY if i change this format means sorting is not working . I Used date-uk.js its not helping me. How to Solveit??? kindly help me

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    See this blog post.

    The date-uk plug-in should work as well. If it isn't then please link to a test case showing the issue.

    Allan

This discussion has been closed.