Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 490 Bytes

File metadata and controls

19 lines (13 loc) · 490 Bytes

Date Extension

This extensions adds some date functions for TWIG

t3strftime

The TWIG build in date function uses DateTimeInterface::format which does not support locales.

t3strftime uses the strftime method, wich supports locales. So you can render day or month as names in your language.

{{ '2017-07-23T16:00:00Z'|t3strftime('%e. %B %G %H:%M Uhr') }}

Outputs in Berlin Timezone:

23. Juli 2017 18:00 Uhr