ViewHelper Documentation

Formats a \DateTime object.

= Examples =

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

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

< format="d.m.Y - H:i:s">+1 week 2 days 4 hours 2 seconds</> 13.12.1980 - 21:03:42 (depending on the current time, see


date string

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