Package

ViewHelpers

ViewHelper Documentation

format.date

Formats a \DateTime object.

= Examples =

<f:format.date>{dateObject}</f:format.date> 1980-12-13 (depending on the current date)

<f:format.date format="H:i">{dateObject}</f:format.date> 01:23 (depending on the current time)

<f:format.date format="d.m.Y - H:i:s">+1 week 2 days 4 hours 2 seconds</f:format.date> 13.12.1980 - 21:03:42 (depending on the current time, see http://www.php.net/manual/en/function.strtotime.php)

Arguments

date anySimpleType

either a DateTime object or a string that is accepted by DateTime constructor

format string

Format String which is taken to format the Date/Time

ViewHelper Resources

Schema Resources