This is how to use DT to convert Unix Time
This is how to use DT to convert Unix Time
SamuelNZ
Posts: 62Questions: 5Answers: 2
Working code/fiddle at bottom
My impression is that DataTables would be able to parse the unix epoch time; i found that with the moment-datetime.js plugin for DT and moment.js it is possible and rather simple.
Working Fiddle attached.
Still trying to figure out a better way to format the output, But this at least works and can be formatted somewhat.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
/removed junk code/
/removed/
/removed junk code/
/removed/ bad idea.
Finally got it working with Moment.
Save as HTML or view this JSFIDDLE
Perfect - using
column.render
to change the input data from one format to another on output is the way to do any transform in DataTables.Allan
Just quickly while your here, How do i get rid of the default width of the table it seems to be hard coded as 1098px and its really screwing up responsive.
Nevermind :P I found