Date Format yyyy-mm-dd And Sorting Issue

Date Format yyyy-mm-dd And Sorting Issue

monkeyjaxcodermonkeyjaxcoder Posts: 5Questions: 0Answers: 0
edited March 2013 in General
Hi All!

I am using DataTables and the issue I am having is for my date columns I am using yyyy-mm-dd format and when I click on date column to sort, DataTables changes my format to mm-dd-yyyy. Also in pagination when you click on page 2 the data changes to mm-dd-yyyy. Is there some code I can put in to correct this issue?

Thanks,

Replies

  • acidstoutacidstout Posts: 8Questions: 0Answers: 0
    Hopefully, allan will correct me if I'm wrong, but I'm using DataTables for nearly two years now including formatted dates and sorting and I never had any issues where DataTables changed the contents of my table cells. Cause that's what you actually describe. Can you provide a demo page where this issue can be reproduced?
  • monkeyjaxcodermonkeyjaxcoder Posts: 5Questions: 0Answers: 0
    Thank you for the quick response. After reading your comment I went back to my project and made a few tests and I discovered that the tool I am using is creating this issue. I'm using a workflow BPM developing application and it has a lot of out of box functions - so I had to manually format the date in the HTML output area and it correct the issue.

    Thank you again!
This discussion has been closed.