i18n\Formatter $datetimeFormat

$datetimeFormat public property

The default format string to be used to format a date and time. This can be "short", "medium", "long", or "full", which represents a preset format of different lengths.

It can also be a custom format as specified in the ICU manual.

Alternatively this can be a string prefixed with php: representing a format that can be recognized by the PHP date()-function.

For example:

'MM/dd/yyyy HH:mm:ss' // date and time in ICU format
'php:m/d/Y H:i:s' // the same date and time in PHP format
public string $datetimeFormat = 'medium'
doc_Yii
2016-10-30 17:05:52
Comments
Leave a Comment

Please login to continue.