# Date Joda parse does not work

**URL:** <https://discuss.elastic.co/t/date-joda-parse-does-not-work/256163>\
**Category:** Logstash\
**Created:** [November 20, 2020, 5:08pm UTC](https://discuss.elastic.co/t/date-joda-parse-does-not-work/256163 "2020-11-20T17:08:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Kabelka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_kabelka/32/72840_2.png) [@Jan\_Kabelka](https://discuss.elastic.co/u/Jan_Kabelka)\
**Post date:** [November 20, 2020, 5:08pm UTC](https://discuss.elastic.co/t/date-joda-parse-does-not-work/256163/1 "2020-11-20T17:08:05Z")

</div>

Hi, I am trying to parse date to field @timestamp. My timestamp looks like below:

"Timestamp" : "11/20/2020 3:32:01 PM"

I tried:

date {  
match =\> ["Timestamp", "MM/dd/yyyy HH:mm:ss a"]  
remove\_field =\> ["Timestamp"]  
}

... or "MM/dd/yyyy KK:mm:ss a" or "MM/dd/yyyy KK:mm:ss aa" or ""MM/dd/yyyy hh:mm:ss a"...

Nothing work, log is not in Kibana or \_dateparsefailure.

Would you know the solution? Thanks a lot!!

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 20, 2020, 5:58pm UTC](https://discuss.elastic.co/t/date-joda-parse-does-not-work/256163/2 "2020-11-20T17:58:53Z")

</div>

```
date { match => ["Timestamp", "MM/dd/yyyy hh:mm:ss a"] remove_field => ["Timestamp"] }

```

works for me

```
"@timestamp" => 2020-11-20T20:32:01.000Z

```

Do not use HH, since it will ignore the AM/PM if you tell it you have an hour in the range 0-23.

If the event is not visible in kibana check in elasticsearch directly. If it is not in elasticsearch then your problem is unrelated to the date filter.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 18, 2020, 5:58pm UTC](https://discuss.elastic.co/t/date-joda-parse-does-not-work/256163/3 "2020-12-18T17:58:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
