Skip to the content
Documentation

Configure personal date format

No ratings yet

In this file, you can write class format date :
[ClassSettings]
Formats[]
Formats[mydate]=%Y/%m/%d
In your template, where you want to see the special format :
{def $timestamp=$node.data_map.date.data_int}
{$timestamp|l10n( 'mydate' )} : french format
That it's.

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: Configure personal date format

    Stéphane BULLIER ·

    I made a mistake in my code. You have to use "datetime" operator : {$timestamp|datetime( 'confdate' )}