# Change date format of date field?

**URL:** <https://forum.getkirby.com/t/change-date-format-of-date-field/12267>\
**Category:** Questions\
**Tags:** v3\
**Created:** [January 19, 2019, 2:52pm UTC](https://forum.getkirby.com/t/change-date-format-of-date-field/12267 "2019-01-19T14:52:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_gareth\_j](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/_gareth_j/32/4694_2.png) [@\_gareth\_j](https://forum.getkirby.com/u/_gareth_j)\
**Post date:** [January 19, 2019, 2:52pm UTC](https://forum.getkirby.com/t/change-date-format-of-date-field/12267/1 "2019-01-19T14:52:23Z")

</div>

is it possible to change the format of the date field in the panel? in k2 we had the display property.

---

<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 19, 2019, 2:55pm UTC](https://forum.getkirby.com/t/change-date-format-of-date-field/12267/2 "2019-01-19T14:55:49Z")

</div>

That’s not possible yet.

---

<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:** [January 19, 2019, 3:34pm UTC](https://forum.getkirby.com/t/change-date-format-of-date-field/12267/3 "2019-01-19T15:34:17Z")

</div>

However an idea issue on Github for it does already exist: [https://github.com/getkirby/ideas/issues/20](https://github.com/getkirby/ideas/issues/20)

---

<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:** [February 15, 2019, 3:04pm UTC](https://forum.getkirby.com/t/change-date-format-of-date-field/12267/4 "2019-02-15T15:04:40Z")

</div>

There’s a plugin for the `DD.MM.YYYY`plugin now: [https://github.com/texnixe/kirby-plugins/issues/630](https://github.com/texnixe/kirby-plugins/issues/630)

If you need another format, you could adapt that, I guess.

---

<div class="post-metadata">

**Author:** ![daybugging](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@daybugging](https://forum.getkirby.com/u/daybugging)\
**Post date:** [May 10, 2019, 2:18pm UTC](https://forum.getkirby.com/t/change-date-format-of-date-field/12267/5 "2019-05-10T14:18:11Z")

</div>

I tried the new ‘format’ option, but the result is still the same:

```auto
date:
  label: Date
  type: date
  format: d.m.Y # also tried DD.MM.YYYY and other stuff, too

```

How does it work?

---

<div class="post-metadata">

**Author:** ![KimMai212](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/kimmai212/32/11480_2.png) [@KimMai212](https://forum.getkirby.com/u/KimMai212)\
**Post date:** [March 9, 2020, 7:54pm UTC](https://forum.getkirby.com/t/change-date-format-of-date-field/12267/6 "2020-03-09T19:54:39Z")

</div>

I have the same problem as daybugging right now.  
The date shows correctly in the panel, but it’s still the YYYY-MM-DD format in the .txt. How can I change that?

---

<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:** [March 9, 2020, 8:01pm UTC](https://forum.getkirby.com/t/change-date-format-of-date-field/12267/7 "2020-03-09T20:01:27Z")

</div>

> [@KimMai212](#):
>
> The date shows correctly in the panel, but it’s still the YYYY-MM-DD format in the .txt.

That doesn’t matter though, because you can output the date however you want using the `toDate()` field method:

> **[$field-\>toDate()](https://getkirby.com/docs/reference/templates/field-methods/to-date)**
>
> Converts the field value to a timestamp or a formatted date
