# Date error

**URL:** <https://tainacan.discourse.group/t/date-error/1165>\
**Category:** Erros\
**Tags:** metadados\
**Created:** [Novembro 18, 2022, 2:04pm UTC](https://tainacan.discourse.group/t/date-error/1165 "2022-11-18T14:04:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dshshproject](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dshshproject](https://tainacan.discourse.group/u/dshshproject)\
**Post date:** [Novembro 18, 2022, 2:04pm UTC](https://tainacan.discourse.group/t/date-error/1165/1 "2022-11-18T14:04:20Z")

</div>

Hello,

I am am trying to upload items in a project i am starting with Tainacan.  
I have set the date as the format requests it for upload with CSV, however i get this error message for every item in the CSV:

\*[2022-11-17 21:49:29] Error saving value for Data in item \*  
_[2022-11-17 21:49:29] Array_  
_(_

- [0] =\> Array\*

- 

```
   (*

```

- 

```
       [metadata_type_error] => Array*

```

- 

```
           (*

```

- 

```
               [0] => Invalid date format. Expected format is MM/DD/YYYY, got 05/07/1729.*

```

- 

```
           )*

```

- 

```
   )*

```

_)_

I would appreciate any help,

Rudi

---

<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:** [Novembro 18, 2022, 2:36pm UTC](https://tainacan.discourse.group/t/date-error/1165/2 "2022-11-18T14:36:47Z")

</div>

Hey @dshshproject! Welcome to our forum!

We’re sorry that you are facing this issue. Could you please send us your CSV file (or maybe a few lines of it, so we could make a test?

---

<div class="post-metadata">

**Author:** ![dshshproject](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dshshproject](https://tainacan.discourse.group/u/dshshproject)\
**Post date:** [Novembro 18, 2022, 2:40pm UTC](https://tainacan.discourse.group/t/date-error/1165/3 "2022-11-18T14:40:46Z")

</div>

Hi Mateus,

Of course. Attached is the file.  
This is my test website: [Dokumente në gjuhën osmane – Dokumente mbi Shqipërinë dhe Shqiptarët](https://dshsh.albanon.org/test/?view_mode=table&perpage=12&paged=1&order=ASC&orderby=meta_value&metakey=1886&fetch_only=&fetch_only_meta=1965%2C18283%2C1886%2C1888%2C1890%2C1892%2C1894)

[elbasani\_sheet6\_test.csv](https://tainacan.discourse.group/uploads/short-url/f2nkTjlqTM4vrM8dlNe8YvbXujh.csv) (11.2 KB)

Thanks  
Rudi

---

<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:** [Novembro 20, 2022, 5:53pm UTC](https://tainacan.discourse.group/t/date-error/1165/4 "2022-11-20T17:53:15Z")

</div>

Uhmm, it seems that our error message up there was not correct. Actually, in a CSV file like this you should set your data in a ISO standard. Could you try the import again by defining your date as YYYY-MM-DD?

---

<div class="post-metadata">

**Author:** ![vnmedeiros](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/vnmedeiros/32/7_2.png) [@vnmedeiros](https://tainacan.discourse.group/u/vnmedeiros)\
**Post date:** [Novembro 20, 2022, 7:21pm UTC](https://tainacan.discourse.group/t/date-error/1165/5 "2022-11-20T19:21:06Z")

</div>

hi @dshshproject ,  
The message log is wrong. the correct one would be:  
`Invalid date format. The expected format is Y-m-d, taken on 7/25/1729`.

if you use this format you should be successful in importing:  
 ![dd](https://global.discourse-cdn.com/free1/uploads/tainacan/original/2X/1/1c93c64fae30ce80f2d6f2479078b07423ff30d1.png)

I sended fix for the log message, in the next version this should be right.

Thanks for message

---

<div class="post-metadata">

**Author:** ![dshshproject](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dshshproject](https://tainacan.discourse.group/u/dshshproject)\
**Post date:** [Novembro 21, 2022, 9:24pm UTC](https://tainacan.discourse.group/t/date-error/1165/6 "2022-11-21T21:24:20Z")

</div>

Hi Mateus,  
The format was the issue. It works fine with yyyy-mm-dd

Thanks

---

<div class="post-metadata">

**Author:** ![dshshproject](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dshshproject](https://tainacan.discourse.group/u/dshshproject)\
**Post date:** [Novembro 21, 2022, 9:26pm UTC](https://tainacan.discourse.group/t/date-error/1165/7 "2022-11-21T21:26:29Z")

</div>

@vnmedeiros

Thanks you!

---

<div class="post-metadata">

**Author:** ![dshshproject](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dshshproject](https://tainacan.discourse.group/u/dshshproject)\
**Post date:** [Dezembro 3, 2022, 1:50pm UTC](https://tainacan.discourse.group/t/date-error/1165/8 "2022-12-03T13:50:12Z")

</div>

@vnmedeiros Hi, is there any way i can enter only the year, or month and year?

Thanks

---

<div class="post-metadata">

**Author:** ![vnmedeiros](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/vnmedeiros/32/7_2.png) [@vnmedeiros](https://tainacan.discourse.group/u/vnmedeiros)\
**Post date:** [Dezembro 3, 2022, 2:20pm UTC](https://tainacan.discourse.group/t/date-error/1165/9 "2022-12-03T14:20:20Z")

</div>

> [@dshshproject](#):
>
> Hi, is there any way i can enter only the year, or month and year?
> 
> Thanks

Hi, unfortunately we don’t have a way to do it yet ☹ ☹ .  
workaround would be to use numeric fields to represents the month or year

---

<div class="post-metadata">

**Author:** ![dshshproject](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dshshproject](https://tainacan.discourse.group/u/dshshproject)\
**Post date:** [Dezembro 3, 2022, 2:24pm UTC](https://tainacan.discourse.group/t/date-error/1165/10 "2022-12-03T14:24:25Z")

</div>

@vnmedeiros that means to create a field for each - day, month, year?
