The element types Date, Time and Date and Time are generally open fields where the users can click to set the date or time themselves, through calendar, date or time pop-ups or text fields. The elements can also be set to automatically show the present date and time – which can then be changed by the user.
To autocapture e.g. time or date when opening a form or a subform (repeat) you can select Capture value automatically under Element Properties – Element Type.
Zegeba uses moment.js date and time as described under General Formatting below.
Default data and time formatting uses the settings of the device or the browser used. You can override the standard settings by using a date/time formatting string.
The example below shows various parameters for customizing the look and functionality of the Date and Time input.
When the update button to the right is pressed, the date will be shown as DD.MM.YYYY and the time as HH:mm in 30-minute intervals (rounded down to the 30 minutes just passed):
Original source: momentjs.com