# Textual representation of dates in multilang setup

**URL:** <https://forum.getkirby.com/t/textual-representation-of-dates-in-multilang-setup/8592>\
**Category:** Questions\
**Tags:** v2\
**Created:** [September 22, 2017, 1:46pm UTC](https://forum.getkirby.com/t/textual-representation-of-dates-in-multilang-setup/8592 "2017-09-22T13:46:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvdputte](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bvdputte/32/8179_2.png) [@bvdputte](https://forum.getkirby.com/u/bvdputte)\
**Post date:** [September 22, 2017, 1:46pm UTC](https://forum.getkirby.com/t/textual-representation-of-dates-in-multilang-setup/8592/1 "2017-09-22T13:46:04Z")

</div>

I would like to use the textual representation of a date field in a multilingual Kirby setup.

I have this to my config:

```
c::set('timezone','Europe/Brussels');
c::set('locale','nl_BE.UTF8');
c::set('date.handler', 'strftime');

```

I have this to my template:

```
echo $page->date("%B %e, %G");

```

But the names of the months are always rendered in English?  
How can I “fix” this so they use the correct language as set in `c::set('languages')` ?

Thanks

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 22, 2017, 2:01pm UTC](https://forum.getkirby.com/t/textual-representation-of-dates-in-multilang-setup/8592/2 "2017-09-22T14:01:48Z")

</div>

> [@bvdputte](#):
>
> echo $page-\>date(“%B %e, %G”);

You might have to experiment with the locale setting, in my local dev environment, for example, I have to set

```auto
c::set('locale','de_DE.UTF-8'); //note the slash between UTF and 8

```

to get the right month names. You might want to also check what is installed on your server…

---

<div class="post-metadata">

**Author:** ![bvdputte](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bvdputte/32/8179_2.png) [@bvdputte](https://forum.getkirby.com/u/bvdputte)\
**Post date:** [September 25, 2017, 7:49am UTC](https://forum.getkirby.com/t/textual-representation-of-dates-in-multilang-setup/8592/3 "2017-09-25T07:49:39Z")

</div>

You’re right. The locale “string” has to be exactly as listed in the server. Add that to the differences between local and production server and you’re in _confusionland_.

Anyway, this is fixed. For future reference: you can use the `locale -a` command to list all installed locales on your webserver.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 25, 2017, 8:10am UTC](https://forum.getkirby.com/t/textual-representation-of-dates-in-multilang-setup/8592/4 "2017-09-25T08:10:22Z")

</div>

> [@bvdputte](#):
>
> Add that to the differences between local and production server and you’re in confusionland.

Yes, but luckily, with Kirby you can [use multiple config files for different environments](https://getkirby.com/docs/developer-guide/configuration/options/#multi-environment-setup).

---

<div class="post-metadata">

**Author:** ![bvdputte](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bvdputte/32/8179_2.png) [@bvdputte](https://forum.getkirby.com/u/bvdputte)\
**Post date:** [September 25, 2017, 8:23am UTC](https://forum.getkirby.com/t/textual-representation-of-dates-in-multilang-setup/8592/5 "2017-09-25T08:23:44Z")

</div>

I know. You guys did a great job making that!

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:32pm UTC](https://forum.getkirby.com/t/textual-representation-of-dates-in-multilang-setup/8592/6 "2025-02-06T17:32:03Z")

</div>


