# Date format: remove time, keep month-day-year

**URL:** <https://discuss.elastic.co/t/date-format-remove-time-keep-month-day-year/78053>\
**Category:** Logstash\
**Created:** [March 9, 2017, 9:18pm UTC](https://discuss.elastic.co/t/date-format-remove-time-keep-month-day-year/78053 "2017-03-09T21:18:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vanian/32/16235_2.png) [@vanian](https://discuss.elastic.co/u/vanian)\
**Post date:** [March 9, 2017, 9:18pm UTC](https://discuss.elastic.co/t/date-format-remove-time-keep-month-day-year/78053/1 "2017-03-09T21:18:48Z")

</div>

I'm using Logstash to parse a CSV file which has fields in the following format:

- AssignmentDate (column header)
- 2/15/2016 (value)

If I open the CSV with Sublime Text, this value is shown like this:

```
Feb 15, 2016

```

In my index template:

```
"mappings": {
  "learning_plan_reports_data": {
    "date_detection": false,
    "properties": {
      "AssignmentDate": {
        "type": "date",
        "include_in_all": false,
        "format": "MMM dd, yyyy||MMM d, yyyy"
      },

```

Unfortunately, once this information gets through to Kibana, I'm seeing this:

```
 AssignmentDate February 15th 2016, 16:00:00.000

```

...what I'd like to obtain is this:

```
 AssignmentDate February 15th 2016

```

Any suggestions? Thank you.

---

<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:** [April 6, 2017, 9:18pm UTC](https://discuss.elastic.co/t/date-format-remove-time-keep-month-day-year/78053/2 "2017-04-06T21:18:48Z")

</div>

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