# How to change the format of the Date Metadata

**URL:** <https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762>\
**Category:** Dúvidas\
**Tags:** metadados\
**Created:** [Março 9, 2022, 4:11pm UTC](https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762 "2022-03-09T16:11:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hussein\_Nassar](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/hussein_nassar/32/697_2.png) [@Hussein\_Nassar](https://tainacan.discourse.group/u/Hussein_Nassar)\
**Post date:** [Março 9, 2022, 4:11pm UTC](https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762/1 "2022-03-09T16:11:17Z")

</div>

Hello All,  
This is Hussein from Lebanon. I am trying to learn about your system and this is my first post.  
I am creating a date metadata and I have the language set to english. I want to keep the language english but since in Lebanon we write the date as dd/mm/yyyy I want to chande the date format to dd/mm/yyyy.  
Is there a way to do that?  
Thank you in advance,  
Hussein

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Março 9, 2022, 5:25pm UTC](https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762/2 "2022-03-09T17:25:56Z")

</div>

Hello @Hussein_Nassar, welcome to our forum!

We’re glad to find out that we have users from Lebanon! The date format [has been a topic of dicussion](https://tainacan.discourse.group/t/weird-date-bug-date-gets-registered-as-one-day-before-what-i-input/595/12) here a couple of times, since we’re still figuring out how to properly make it compatible with all the different locations. While in the database it is saved as `yyyy-mm-dd`, in the interface it shows different, and there are two settings that are relevant for it:

- The WordPress date settings (see how to change it [here](https://wordpress.org/support/article/formatting-date-and-time/)), which is used to display the date value in the metadata when edition is completed.
- The browser language, which is the reference used by the Datepicker in the item metadata edition form.

In your question, you seem to have wrongfully typed both dates formats equally, but my best guess is that your browser is set to your native language (Arabic, French? Forgive my ignorance on this)… would that be the case?

Hope we can find the solution for this and any other issues, We’re curious to see what you are working on!

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Março 14, 2022, 12:32pm UTC](https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762/3 "2022-03-14T12:32:23Z")

</div>

Hi @Hussein_Nassar did you have any progress on this?

---

<div class="post-metadata">

**Author:** ![Hussein\_Nassar](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/hussein_nassar/32/697_2.png) [@Hussein\_Nassar](https://tainacan.discourse.group/u/Hussein_Nassar)\
**Post date:** [Março 14, 2022, 8:17pm UTC](https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762/4 "2022-03-14T20:17:12Z")

</div>

Hello Mateus,  
Fist wanna say thanks for welcoming me and thank you for the answer and sorry for getting back late.  
In Lebanon, we tend to write the date as dd/mm/yyyy. However we also tend to use english (en\_US) browser and english language on wordpress. So when this happens wordpress offer us the format: mm/dd/yyyy.  
So I am not sure if there is a way to write the data as dd/mm/yyyy and keep the language of wordpress in en\_us.  
You think there is a way to solve this?  
Regarding what I am working on: now I am testing the system on a hobby of mine which is data repository of mushrooms. Later hopefully I want to assist an environmental NGO in creating their repository.

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Março 15, 2022, 12:36pm UTC](https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762/5 "2022-03-15T12:36:36Z")

</div>

> [@Hussein\_Nassar](#):
>
> Fist wanna say thanks for welcoming me and thank you for the answer and sorry for getting back late

No problem, we also tend to have our own rhythm here 🙂

> [@Hussein\_Nassar](#):
>
> So I am not sure if there is a way to write the data as dd/mm/yyyy and keep the language of wordpress in en\_us.

Yeah sadly that would not be possible by now. We would have to create an option to the Date metadata type. I created an issue for this, which should be in low priority by now, but can be addressed in the future:

> <https://github.com/tainacan/tainacan/issues/689>
>
> We recently heard of some users who may prefer to display their date values in f…ormats that are not the ones of their browser language, as our date input does. This is a bit unusual but might be a nice feature to have.

> [@Hussein\_Nassar](#):
>
> Regarding what I am working on: now I am testing the system on a hobby of mine which is data repository of mushrooms. Later hopefully I want to assist an environmental NGO in creating their repository.

Nice have fun with it and good luck on your projects 😉

---

<div class="post-metadata">

**Author:** ![Hussein\_Nassar](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/hussein_nassar/32/697_2.png) [@Hussein\_Nassar](https://tainacan.discourse.group/u/Hussein_Nassar)\
**Post date:** [Março 15, 2022, 1:43pm UTC](https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762/6 "2022-03-15T13:43:50Z")

</div>

Hello again  
and thank you for your answer. I am trying to reinstall a fresh version of tainacan having the language set to display dd/mm/yyyy.  
However, when I am deleting the plugin and reinstalling it again i find out that old data is still there. Which tables from the database i need to delete so I erase all data of tainacan?  
Thank you for the continued support.  
Hussein

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Março 15, 2022, 2:02pm UTC](https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762/7 "2022-03-15T14:02:29Z")

</div>

Yeah, the database is not cleared when a plugin is removed. While I could point you to the database tables, a much safer way is to remove the collections from the administrative UI. It should start a background process that will perform the deletions and necessary checks. You can keep track of the deletion status in the repository menu “Activities” → “Processes”.

That said, remember that

> [@mateus.m.luna](#):
>
> in the database it is saved as `yyyy-mm-dd`

And that the way you see the data in the front varies in two settings:

> [@mateus.m.luna](#):
>
> - The WordPress date settings (see how to change it [here](https://wordpress.org/support/article/formatting-date-and-time/)), which is used to display the date value in the metadata when edition is completed.
> - The browser language, which is the reference used by the Datepicker in the item metadata edition form.

---

<div class="post-metadata">

**Author:** ![Hussein\_Nassar](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/hussein_nassar/32/697_2.png) [@Hussein\_Nassar](https://tainacan.discourse.group/u/Hussein_Nassar)\
**Post date:** [Março 16, 2022, 11:09am UTC](https://tainacan.discourse.group/t/how-to-change-the-format-of-the-date-metadata/762/8 "2022-03-16T11:09:04Z")

</div>

Thank you Mateus,  
That did help!
