UNPKG

datatables.net-datetime

Version:

DateTime picker for DataTables.net

39 lines (26 loc) 699 B
<?xml version="1.0" encoding="UTF-8" ?> <dt-example table-type="html" table-class="display nowrap" order="6"> <css lib="datetime"/> <js lib="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"/> <js lib="jquery datetime"> <![CDATA[ $('#test').dtDateTime({ format: 'D MMM YYYY HH:mm' }); ]]> </js> <js-vanilla> <![CDATA[ new DateTime(document.getElementById('test'), { format: 'D MMM YYYY HH:mm' }); ]]> </js-vanilla> <title lib="DateTime">Date and time</title> <info><![CDATA[ This example shows the date / time input used for both date and time inputs. ]]></info> <custom-table> <input id="test" type="text" value="17 Jan 2020 12:19" /> </custom-table> </dt-example>