# How to find the day of the week from timestamp

**URL:** <https://discuss.elastic.co/t/how-to-find-the-day-of-the-week-from-timestamp/57105>\
**Category:** Logstash\
**Created:** [August 3, 2016, 12:54pm UTC](https://discuss.elastic.co/t/how-to-find-the-day-of-the-week-from-timestamp/57105 "2016-08-03T12:54:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkamalkool6](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@rajkamalkool6](https://discuss.elastic.co/u/rajkamalkool6)\
**Post date:** [August 3, 2016, 12:54pm UTC](https://discuss.elastic.co/t/how-to-find-the-day-of-the-week-from-timestamp/57105/1 "2016-08-03T12:54:13Z")

</div>

Hi,

I have a timestamp `2015-11-01 21:45:25,296` like I mentioned above. is it possible to extract the the day of the week(Mon, Tue,etc) using any regular expression or grok pattern.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 5, 2016, 12:18am UTC](https://discuss.elastic.co/t/how-to-find-the-day-of-the-week-from-timestamp/57105/2 "2016-08-05T00:18:04Z")

</div>

I don't believe there is anything native to ES to do this, dunno if you can do something with ruby code though.

---

<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:** [July 6, 2017, 4:44am UTC](https://discuss.elastic.co/t/how-to-find-the-day-of-the-week-from-timestamp/57105/3 "2017-07-06T04:44:45Z")

</div>


