$.fn.dataTable.render.moment does not work with new version
$.fn.dataTable.render.moment does not work with new version
jstuardo
Posts: 104Questions: 41Answers: 0
Hello.... I have updated my datatable files to ne version.
After that $.fn.dataTable.render.moment
does not work anymore.
Previously, I included <script type="text/javascript" src="//cdn.datatables.net/plug-ins/1.13.6/dataRender/datetime.js"></script>
. With this new version, Should I keep that include or is there other way to manage this?
Thanks
This question has an accepted answers - jump to answer
Answers
It should still work just as it was, and appears to here: https://live.datatables.net/wepejoqu/1/edit .
Built in support for the date time renderer was actually one of the new features in v2. You don't need the external resource anymore, and the new renderer works with Luxon or Moment. This is the example using the built in renderer.
Allan