"$.fn.dataTable.render.moment is not a function" while Moment.js loaded before DataTables

"$.fn.dataTable.render.moment is not a function" while Moment.js loaded before DataTables

richard.carree.com@gmail.comrichard.carree.com@gmail.com Posts: 23Questions: 7Answers: 0
edited January 29 in Free community support

Link to test case: http://live.datatables.net/zituseje/1/edit

Error messages shown: $.fn.dataTable.render.moment is not a function

Description of problem: I'd like to format dates as shown in this example. However even though I load Moment.js before DataTables, I can't use it.

Answers

  • richard.carree.com@gmail.comrichard.carree.com@gmail.com Posts: 23Questions: 7Answers: 0

    I didn't see we also need to load:

    <script src="cdn.datatables.net/plug-ins/1.10.21/dataRender/datetime.js" charset="utf8"></script>

  • richard.carree.com@gmail.comrichard.carree.com@gmail.com Posts: 23Questions: 7Answers: 0
    edited January 29

    I didn't see we also need to load:

    <script src="https://cdn.datatables.net/plug-ins/1.10.21/dataRender/datetime.js" charset="utf8"></script>

Sign In or Register to comment.