UNPKG

datatables.net-datetime

Version:

DateTime picker for DataTables.net

28 lines (18 loc) 551 B
<?xml version="1.0" encoding="UTF-8" ?> <dt-example table-type="html" table-class="display nowrap" order="7"> <css lib="datetime"/> <js lib="datatables moment datetime"> <![CDATA[ new DateTime(document.getElementById('test'), { format: 'D/M/YYYY' }); ]]> </js> <title lib="DateTime">Moment formatting</title> <info><![CDATA[ This example shows the date / time input with [Moment](https://momentjs.com/) used to provide formatting. ]]></info> <custom-table> <input id="test" type="text" value="30/1/2026" /> </custom-table> </dt-example>