Author: barsch
Publication Date: 7/2/2010 12:35
If you would like to get a date formatted in a different locale than default, you can get it in this way:
$CMS_VALUE(#global.now.format("EEEE d MMMM yyyy", "en"))$
Output:
Friday 2 July 2010
Date format without locale:
$CMS_VALUE(#global.now.format("EEEE d MMMM yyyy"))$
Output:
Freitag 2 Juli 2010
Tags: date, format, knowledgebase, locale, template
Kommentare
1 Kommentar
Where "default locale" is the locale of the currently generated language...
And avoid #global.now, Melanie is using it here just exemplary.
Use #global.startTime which is constant over the generation process and can be mapped to a revision.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.