DateViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:format.date>
FinalYes
ViewHelper to format an object implementing `\DateTimeInterface` into human-readable output.
<f:format.date format="Y-m-d H:i">{dateObject}</f:format.date>
<f:format.date format="Y" base="{dateObject}">-1 year</f:format.date>
<f:format.date pattern="dd. MMMM yyyy" locale="de-DE">{dateObject}</f:format.date>
Tags
Table of Contents
Properties
- $escapeChildren : bool
- Needed as child node's output can return a DateTime object which can't be escaped
Methods
- getContentArgumentName() : string
- Explicitly set argument name to be used as content.
- initializeArguments() : void
- render() : string
Properties
$escapeChildren
Needed as child node's output can return a DateTime object which can't be escaped
protected
bool
$escapeChildren
= false
Methods
getContentArgumentName()
Explicitly set argument name to be used as content.
public
getContentArgumentName() : string
Return values
stringinitializeArguments()
public
initializeArguments() : void
render()
public
render() : string