# Elasticsearch date functions

**URL:** <https://discuss.elastic.co/t/elasticsearch-date-functions/104890>\
**Category:** Elasticsearch\
**Created:** [October 23, 2017, 11:33am UTC](https://discuss.elastic.co/t/elasticsearch-date-functions/104890 "2017-10-23T11:33:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kabali12345](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kabali12345](https://discuss.elastic.co/u/kabali12345)\
**Post date:** [October 23, 2017, 11:33am UTC](https://discuss.elastic.co/t/elasticsearch-date-functions/104890/1 "2017-10-23T11:33:26Z")

</div>

Hi all....  
Here i am trying to update @timestamp field every time when i partially update the doc

```auto
POST /titanic_kfk/doc/22/_update?pretty
{
  "doc": { "@timestamp": 1508756153000 }
}

```

but in the above statement i have mentioned a static value for @timestamp field  
but i would like to know if there is any date function **like NOW() in MySql** so that i can use that function instead of static epoch values .

Please suggest me the possible ways to do that.

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:** [November 20, 2017, 11:33am UTC](https://discuss.elastic.co/t/elasticsearch-date-functions/104890/2 "2017-11-20T11:33:27Z")

</div>

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