The current DateViewHelper has no support for localized dates so I created a version that uses strftime() to render strings.
Additionally it supports UNIX-timestamps, dates that are understood by strtotime() (i.e. "2010-07-27") and DateTime-objects.
And you can also calculate dates relative to the given one. This way you can add days, weeks, months or whatsoever or get the first day of a week, a month or a year.
Keen on hearing your opinion.
#3 Updated by Christopher Hlubek almost 8 years ago
- Has patch set to No
The ViewHelper is pretty helpful and should be included in the Fluid core since
DateFormat->format() is not suitable for localized output of names. But it should call
$this->renderChildren to use it as a shorthand filter if
$timestamp === NULL.