# Specify strict\_date\_optional\_time\_nanos format for date data type

**URL:** https://discuss.elastic.co/t/specify-strict-date-optional-time-nanos-format-for-date-data-type/256246
**Category:** Beats
**Tags:** filebeat
**Created:** [November 21, 2020, 10:42pm UTC](https://discuss.elastic.co/t/specify-strict-date-optional-time-nanos-format-for-date-data-type/256246 "2020-11-21T22:42:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chris\_pacb](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@chris\_pacb](https://discuss.elastic.co/u/chris_pacb)
#### Post date: [November 21, 2020, 10:42pm UTC](https://discuss.elastic.co/t/specify-strict-date-optional-time-nanos-format-for-date-data-type/256246/1 "2020-11-21T22:42:04Z")

</div>

Hi all!

I'm using "setup.template.append\_fields" in filebeat to specify extra fields. I can specify a "type" where I'm using "date" as the data type. How would I specify the "strict\_date\_optional\_time\_nanos" format.

This doesn't work:

```auto
setup.template.append_fields:
  - name: dissect.created_utc
    type: date
    format: strict_date_optional_time_nanos

```

---

<div class="post-metadata">

### Author: ![chris\_pacb](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@chris\_pacb](https://discuss.elastic.co/u/chris_pacb)
#### Post date: [December 2, 2020, 9:18pm UTC](https://discuss.elastic.co/t/specify-strict-date-optional-time-nanos-format-for-date-data-type/256246/2 "2020-12-02T21:18:07Z")

</div>

Just wondering if anyone knew anything about this.

---

<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 30, 2020, 11:18pm UTC](https://discuss.elastic.co/t/specify-strict-date-optional-time-nanos-format-for-date-data-type/256246/3 "2020-12-30T23:18:11Z")

</div>

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