Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Localized date output


Go to End


1608 Views

Avatar
Hubertus

Community Member, 14 Posts

31 January 2008 at 9:46pm

Edited: 31/01/2008 9:47pm

I'm using SS 2.2.1 with

i18n::enable();
and
i18n::set_locale('de_DE');
in my _config.php.

How can I get

$Date.Format(j. F Y)
in my template to output the German month name instead of the default English one? I would prefer to not touch date.php in the SS core.

Thanks!