# {contactfield=XYZ} of type date always formats Y-M-D

**URL:** <https://forum.mautic.org/t/contactfield-xyz-of-type-date-always-formats-y-m-d/12239>\
**Category:** Product Support\
**Created:** [January 8, 2020, 9:22pm UTC](https://forum.mautic.org/t/contactfield-xyz-of-type-date-always-formats-y-m-d/12239 "2020-01-08T21:22:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [January 8, 2020, 9:22pm UTC](https://forum.mautic.org/t/contactfield-xyz-of-type-date-always-formats-y-m-d/12239/1 "2020-01-08T21:22:58Z")

</div>

**Your software**  
My Mautic version is: 2.15.3  
My PHP version is: 7.2

**Your problem**  
My problem is:

Date Fields as tokens always are formated Y-M-D in emails, no matter what is set in backend. In fact Y-M-D isn’t even set for any of the date formatings. It would be important to adjust the Date / Time and probably other tokens formating in the right locale.

Did I miss any possible setting or is this a real limitation as of today?

These errors are showing in the log: none

Steps I have tried to fix the problem: experimented with different settings

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [January 13, 2020, 9:38am UTC](https://forum.mautic.org/t/contactfield-xyz-of-type-date-always-formats-y-m-d/12239/2 "2020-01-13T09:38:42Z")

</div>

According to this PR: [https://github.com/mautic/mautic/pull/6237](https://github.com/mautic/mautic/pull/6237) you should be able to use the following syntax:

`{contactfield=aliasofyourcustomdatefield|datetime}`  
`{contactfield=aliasofyourcustomdatefield|date}`  
`{contactfield=aliasofyourcustomdatefield|time}`

Assuming of course you have the desired formatting in your global config (see screenshot below)

 ![screenshot-local.mautic3-2020.01.13-09_34_30](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/641bd392ea59258dbcd4e20174223e9ee79c4ae0.png)

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [January 13, 2020, 9:40am UTC](https://forum.mautic.org/t/contactfield-xyz-of-type-date-always-formats-y-m-d/12239/3 "2020-01-13T09:40:15Z")

</div>

See also, date format section on [https://www.mautic.org/docs/en/emails/manage\_emails.html](https://www.mautic.org/docs/en/emails/manage_emails.html) 🙂
