# Format data wrong

**URL:** <https://forum.getkirby.com/t/format-data-wrong/6170>\
**Category:** Questions\
**Tags:** v2\
**Created:** [December 31, 2016, 11:36am UTC](https://forum.getkirby.com/t/format-data-wrong/6170 "2016-12-31T11:36:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabio](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@fabio](https://forum.getkirby.com/u/fabio)\
**Post date:** [December 31, 2016, 11:36am UTC](https://forum.getkirby.com/t/format-data-wrong/6170/1 "2016-12-31T11:36:43Z")

</div>

I installed latest version Kirby on a local server.  
During installation (panel) I selected my language (Italian)  
But in Dashboard the date format is wrong:

[[Album] imgur.com ![](https://i.imgur.com/PyG20Ge.jpeg?fb "imgur.com") ](https://imgur.com/a/3281z)

[[Album] imgur.com ![](https://i.imgur.com/gpWXNqT.jpeg?fb "imgur.com") ](https://imgur.com/a/u4cbV)

In config.php I added:  
c::set(‘timezone’,‘Europe/Rome’);  
c::set(‘setlocale’,‘it\_IT.UTF8’);  
setlocale(LC\_ALL, ‘it\_IT’);

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:** [December 31, 2016, 2:30pm UTC](https://forum.getkirby.com/t/format-data-wrong/6170/2 "2016-12-31T14:30:59Z")

</div>

As far as I know, unfortunately, you can’t change the date format in the sidebar of the Panel without modifying the source code.

---

<div class="post-metadata">

**Author:** ![fabio](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@fabio](https://forum.getkirby.com/u/fabio)\
**Post date:** [December 31, 2016, 3:37pm UTC](https://forum.getkirby.com/t/format-data-wrong/6170/3 "2016-12-31T15:37:01Z")

</div>

this is a limitation…  
What sense does it install Kirby with my own language, if the display format of some data is in a different language?  
I can modify the source code, but the next update I lose the changes.  
By the way, what files should I change?

Then, about the public side, you can change the date format?

[[Album] Imgur: The magic of the Internet ![](https://i.imgur.com/bV4qJhw.jpg?fb "Imgur: The magic of the Internet") ](https://imgur.com/a/Zqige)

I’m trying to understand, before buying a license.

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [December 31, 2016, 4:29pm UTC](https://forum.getkirby.com/t/format-data-wrong/6170/4 "2016-12-31T16:29:29Z")

</div>

@fabio:

@texnixe is correct, but she answers only the first question of your initial post.

If you look at [Docs: **Example with custom format**](https://getkirby.com/docs/cheatsheet/panel-fields/date), you can set the format of the date field in the right part of the panel.

The answer to your new question is:

 ![](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/b/b3bf590759b6d44797f9daef369a85e26d0764c2.jpg)

what you see if you install [Kirby **langkit**](https://github.com/getkirby/langkit) and go there to the **German** version of the page from your new image.

I strongly recommend installing this package “ **langkit** ” to understand the issues of your questions.

To get this, you have to build your php code in your snippets, templates and so on like

```php
<p class="article-date"><?= $article->date(l('date.format')) ?></p>

```

from that page.

Good luck!

---

<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:** [January 1, 2017, 11:54am UTC](https://forum.getkirby.com/t/format-data-wrong/6170/5 "2017-01-01T11:54:48Z")

</div>

On the frontend, you can format your date like this:

```auto
<?= $page->date('d.m.Y') ?>

```

or whatever format you prefer.

---

<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, 4:53pm UTC](https://forum.getkirby.com/t/format-data-wrong/6170/6 "2025-02-06T16:53:05Z")

</div>


