# Convert String to date and compare it

**URL:** <https://discuss.elastic.co/t/convert-string-to-date-and-compare-it/311394>\
**Category:** Logstash\
**Created:** [August 4, 2022, 10:10am UTC](https://discuss.elastic.co/t/convert-string-to-date-and-compare-it/311394 "2022-08-04T10:10:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [August 4, 2022, 4:00pm UTC](https://discuss.elastic.co/t/convert-string-to-date-and-compare-it/311394/4 "2022-08-04T16:00:35Z")

</div>

> [@alex\_vermex](#):
>
> Can I specify the output format?

Maybe. See [this](https://discuss.elastic.co/t/date-field-being-converted-to-timestamps/180044/2) thread.

---

_[View the full topic](https://discuss.elastic.co/t/convert-string-to-date-and-compare-it/311394)._
