I want to sort date column in gridjs and i am displaying it in mm/dd/yyyy format. Currently it is taking as string and sorting incorrectly. Any formatter or sort option available for date column in girdjs? No solution till now
I want to sort date column in gridjs and i am displaying date in mm/dd/yyyy format
365 Views Asked by Srini At
1
There are 1 best solutions below
Related Questions in GRIDJS
- how to implement gridJS with multiple selects
- gridjs Make whole row a link instead of link in columns
- GridJS constant: An error happened while fetching the data
- inserting style into javascript based on a condition
- gridjs: how to change background colors based on the row ID?
- How to access sorted data in the GridJS library in the console after a sort event?
- Liveweave vs jsfiddle and codepen - Same code, different results
- Side by Side Grids
- How to get the inner text of an anchor tag from a gridjs table
- GridJS adding data to table using a JSON array
- how to get sql data in [["row1","row2","row3"],["row1","row2","row3"]]
- GridJs isn't sorting column when converting from HTML table
- Searching in gridjs HTML fields
- Pagination issue with fetching data in React using useState and useEffect
- How to update only gridjs record not whole table when attribute changes inside the data in gridjs-react
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I had the same problem. The date from an API was in RFC3339 format, and i wanted to output german format while maintaining sorting ability.
I used a combination of a custom sorter and a custom formatter.
Here is my formatting function:
I converted it with the help of
toLocaleString(adjust to your needs).My comparing function is pretty simple:
With gridjs, you can use both functions as noted here: