Can't make format
to work
#432
Unanswered
freenandes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment, simple-datatables works well on my project. It has a minor annoyance where, somehow, [data-sort="asc"] doesn't work on page load. I have to go in the default config that I've set up in JS and then define the first column to sort ascending — this way it works.
My biggest problem though is the formatting of dates. As it can be seen on this example: https://jsfiddle.net/c5hpmnvb/2/
It doesn't format it, or maybe I'm doing it wrong because I'm finding it difficult to fill in the blanks in the documentation (due to my noobness level). Can someone give some pointers onto the right direction?
Edit: You can see i added moment.js. I have no clue, after reading the docs, if I need to add it or not for the formatting of dates to work.
Beta Was this translation helpful? Give feedback.
All reactions