Date and / or time input. Please note - this property requires the Editor extension for DataTables.
The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please sign-in, alternatively an Editor license can be purchased on this site, or sign up for the free trial.
Date and time data often forms the corner stone of many web applications and in order to facilitate easy entry of date information Editor includes the
datetime field type which will show a calendar and / or time picker to the end user (based on the format set).
By default the calendar will operate with ISO8601 dates (YYYY-MM-DD - for example 2015-10-25) and requires no additional software to operate with this common and unambiguous date format. However, you may wish to show date information to your end users in a different format to increase its legibility - that can be done using the
format option and including the Moment.js library on your page. Moment.js has a wide range of formatting options and virtually any date format can be used.
In addition to date this field type provides a time input widget as well. The format to be used can be specified using the
format option and
datetime will automatically determine if the calendar should be shown, the time picker or both - i.e. if a format does not include date information the calendar will not be shown, only the time picker.