It's better when it's simple

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

plugin:struct:type_datetime [2016-07-28 12:34] (current)
andi created
Line 1: Line 1:
 +<= [[plugin:struct|Struct Plugin]] <= [[plugin:struct:type|Types]]
 +====== Struct Plugin: Type DateTime ======
 +The ''DateTime'' type accepts a date and time in the format ''YYYY-MM-DD HH:MM:SS''. The output format can be controlled through a config. Data entry is helped through a date picker, the time has to be entered manually.
 +===== Configuration =====
 +The following configuration is available in addition to the basic type [[type#configuration]]:
 +^ Config        ^ Format   ^ Description                                                                                                                                  ^
 +| format        | string   | A [[phpfn>date]] format string for formatting the date in the output                                                                         |
 +| prefilltoday  | boolean  | When set to true, the input will be automatically filled with the current date and time when empty. Useful to have something like a "creation date" |
plugin/struct/type_datetime.txt ยท Last modified: 2016-07-28 12:34 by andi