datatables.net-datetime
Version:
DateTime picker for DataTables.net
30 lines (24 loc) • 960 B
text/xml
<dt-option library="DateTime">
<name>format</name>
<summary>The format of the date data.</summary>
<since>DateTime 1.0.0</since>
<type type="string">
<description>
This string is used to represent the structure of the date that is being used by DateTime.
</description>
</type>
<default value="'YYYY-MM-DD'">
The default value for format is to use the ISO-8601 format.
</default>
<description>
<, [Luxon](https://moment.github.io/luxon/) or [DayJS](https://github.com/iamkun/dayjs) depending on which is in use.
]]>
</description>
<example title="Change format to use '/' instead of '-'."><![CDATA[
new DateTime(document.getElementById('test'), {
format: 'YYYY/MM/DD'
});
]]></example>
</dt-option>