Date format with a different locale

barsch
I'm new here
2 1 883

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

1 Comment
Peter_Jodeleit
Crownpeak employee
Crownpeak employee

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.

Version history
Last update:
‎07-02-2010 05:35 AM
Updated by: