Page History
DateFieldDefinition
renders a calendar that allows the user to select a date and optionally a time.
Info |
---|
Date This date field definition is part of the Magnolia 6 UI framework. The fully qualified class name is If you work with the Magnolia 5 UI framework, see Date field for Magnolia 5 UI instead. |
Table of Contents |
---|
Example
...
definition
Code Block | ||
---|---|---|
| ||
date: label: Date $type: dateField type: java.util.Date time: true |
Date field properties
...
type
required
...
Field properties
Field-specific properties
| optional, default is Format in which the date is displayed to users. See SimpleDateFormat the Examples:
| ||||||||||
| optional, default is Set the default value to a specific date and time such as The default value applies only applies to new content items, not to existing content items those that have already been created previously. Enclose the default value in Enclose the property value in quotes when using YAML:
If you define the the
| ||||||||||
| optional, default is Enables time selection. Renders dropdown boxes lists at the bottom of the calendar. | ||||||||||
| optional, default is Format in which the time is displayed to users. See SimpleDateFormat the Examples:
|
Common simple field properties
Include Page | ||||
---|---|---|---|---|
|
|