# Milliseconds in timestamp for Curator

**URL:** https://discuss.elastic.co/t/milliseconds-in-timestamp-for-curator/195433
**Category:** Elasticsearch
**Created:** [August 16, 2019, 5:52am UTC](https://discuss.elastic.co/t/milliseconds-in-timestamp-for-curator/195433 "2019-08-16T05:52:28Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![NominaSumpta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nominasumpta/32/52412_2.png) [@NominaSumpta](https://discuss.elastic.co/u/NominaSumpta)
#### Post date: [August 17, 2019, 11:10am UTC](https://discuss.elastic.co/t/milliseconds-in-timestamp-for-curator/195433/3 "2019-08-17T11:10:44Z")

</div>

You are right - they are not milliseconds. I've decided to use the `basic_date_time_no_millis` date format like this:

```
from datetime import datetime
        dt = datetime.utcnow()
        timestamp = dt.strftime('%Y%m%d')
        timestamp += dt.strftime('T%H%M%S')

```

Which results in a timestamp like `20190817T105422`. That lead to [another issue](https://discuss.elastic.co/t/change-timestamp-format-for-existing-index/195593) . I guess this format should work with Curator.

---

_[View the full topic](https://discuss.elastic.co/t/milliseconds-in-timestamp-for-curator/195433)._
