Date/Time Field Type
The date/time field type stores date and time information. You can choose to just store the date, or store the date plus the time.
Parameters
Parameter | Values | Description |
---|---|---|
Use Time | Yes / No | Whether or not to use and record time with the date. |
Start Restriction | Format Strong | Takes numerical offset from current date (Ex: -20) or numerical offset for days (D), months (M), and years (Y). Ex: +1D +2Y<. |
End Restriction | Format String | Takes numerical offset from current date (Ex: -20) or numerical offset for days (D), months (M), and years (Y). Ex: +1D +2Y< |
Storage Format | MySQL Datetime, UNIX time | Sets the column type to use for data storage. |
Input Type | Datepicker, Dropdown | You can either have a set of HTML selects to the input the date/time, or a jQuery datepicker. |
Formatting Date/Time Output
The date/time field type can be formatted with the date function, using the helper plugin. The formatting follows PHP's date formatting guidelines. Simply pass the date/time value as the timestamp paramter.
Example:
{{ helper:date format="d/m/Y" timestamp=start_on }}