"$.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.com
Posts: 23Questions: 7Answers: 0
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.
This discussion has been closed.
Answers
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>
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>