Edit on GitHub

Date Editable


Name Type Description
format string A string which describes how to output the date. (see below)
class string A CSS class that is added to the surrounding container of this element in editmode


Name Return Description
isEmpty() boolean Whether the editable is empty or not

List of Supported Formats

The list of all currently supported formats ou can find in the PHP manual.

Simple Example

The following code will create a simple date widget in editmode. In frontend it will format the date as defined in format.

Localization (output-format, ...) is automatically used from the globally registered locale. Please read the topic Localization.

<?= $this->date("myDate", [
     "format" => "%d.%m.%Y"
]); ?>