# Convert Date String Into Date Format

**URL:** https://discuss.elastic.co/t/convert-date-string-into-date-format/249124
**Category:** Kibana
**Created:** [September 18, 2020, 3:19pm UTC](https://discuss.elastic.co/t/convert-date-string-into-date-format/249124 "2020-09-18T15:19:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wahzix](https://avatars.discourse-cdn.com/v4/letter/w/439d5e/32.png) [@wahzix](https://discuss.elastic.co/u/wahzix)
#### Post date: [September 18, 2020, 3:19pm UTC](https://discuss.elastic.co/t/convert-date-string-into-date-format/249124/1 "2020-09-18T15:19:42Z")

</div>

Hi,

I want to convert a date which is like this :  
2020-09-18 15:42:41.5721

To do so, I have tried to use date plugin but it seems that the number of milliseconds is limited ( according to the doc )

```
    date {
		match => ["time_stamp", "yyyy-MM-dd HH:mm:ss.SSS"]
	}

```

So when I use this it doesn't work, can anyone help me ?

Thanks

---

<div class="post-metadata">

### Author: ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)
#### Post date: [September 18, 2020, 4:12pm UTC](https://discuss.elastic.co/t/convert-date-string-into-date-format/249124/2 "2020-09-18T16:12:57Z")

</div>

Hi

This seems to be a logstash question. however you should have a look at the date nanos field type, since normal dates in ES only support milliseconds.

> **[Date nanoseconds field type | Elasticsearch Reference \[7.9\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/date_nanos.html)**

Best,  
Matthias

---

<div class="post-metadata">

### Author: ![wahzix](https://avatars.discourse-cdn.com/v4/letter/w/439d5e/32.png) [@wahzix](https://discuss.elastic.co/u/wahzix)
#### Post date: [September 28, 2020, 9:28am UTC](https://discuss.elastic.co/t/convert-date-string-into-date-format/249124/3 "2020-09-28T09:28:26Z")

</div>

Indeed, I reposted it. Thanks

---

<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: [October 26, 2020, 9:28am UTC](https://discuss.elastic.co/t/convert-date-string-into-date-format/249124/4 "2020-10-26T09:28:44Z")

</div>

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