[TYPO3-mvc] DateTime in Fluid

Claus Fassing claus at fassing.eu
Thu May 19 13:29:13 CEST 2011


Am 19.05.2011 10:24, schrieb Pankaj Lele:
> is there something like f:form.date available

Yes it is.

<f:format.date format="d.m.Y - H:i:s">+1 week 2 days 4 hours 2
seconds</f:format.date>

from
http://wiki.typo3.org/Fluid#f:format.date

or
<f:format.date>{dateTimeObject}</f:format.date>
or unix timestamp variant
<f:format.date>1305807808</f:format.date>

Format attribute is like format parameter from php date object
Default is Y-m-d

Greetz Claus


More information about the TYPO3-project-typo3v4mvc mailing list