# Current date time in kibana watcher action body

**URL:** <https://discuss.elastic.co/t/current-date-time-in-kibana-watcher-action-body/197261>\
**Category:** Kibana\
**Created:** [August 29, 2019, 5:34am UTC](https://discuss.elastic.co/t/current-date-time-in-kibana-watcher-action-body/197261 "2019-08-29T05:34:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik2411](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@Karthik2411](https://discuss.elastic.co/u/Karthik2411)\
**Post date:** [August 29, 2019, 5:34am UTC](https://discuss.elastic.co/t/current-date-time-in-kibana-watcher-action-body/197261/1 "2019-08-29T05:34:19Z")

</div>

How can I print current time/watcher trigger time in action body of a kibana watcher?

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [August 29, 2019, 6:10pm UTC](https://discuss.elastic.co/t/current-date-time-in-kibana-watcher-action-body/197261/2 "2019-08-29T18:10:14Z")

</div>

Can you share what you have so far? You can get the current time with `ctx.trigger.scheduled_time` or `ctx.trigger.current_time` in the watcher script.

---

<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:** [September 26, 2019, 6:10pm UTC](https://discuss.elastic.co/t/current-date-time-in-kibana-watcher-action-body/197261/3 "2019-09-26T18:10:22Z")

</div>

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