# Input Date in PUT Watcher API

**URL:** https://discuss.elastic.co/t/input-date-in-put-watcher-api/167374
**Category:** Elasticsearch
**Created:** [February 7, 2019, 2:19am UTC](https://discuss.elastic.co/t/input-date-in-put-watcher-api/167374 "2019-02-07T02:19:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![teemoGod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teemogod/32/40817_2.png) [@teemoGod](https://discuss.elastic.co/u/teemoGod)
#### Post date: [February 7, 2019, 2:19am UTC](https://discuss.elastic.co/t/input-date-in-put-watcher-api/167374/1 "2019-02-07T02:19:29Z")

</div>

hi. i'm using elasticseacrh 6.4

i'm using Watcher API for pre-processing aggregation's result summary.

i need input date-type data (now()) in watcher api.

i'm looking input reference  
([https://www.elastic.co/guide/en/elastic-stack-overview/6.4/input.html](https://www.elastic.co/guide/en/elastic-stack-overview/6.4/input.html))

I want to add date-type data as 'date' property as top-level property like response's 'aggregations' property

now i'm saving aggregation result only (using watcher api's 'extract' property).

when i tried input 'now()' value to 'simple' input type, exception has been occured.

can i do this?

---

<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: [March 7, 2019, 2:19am UTC](https://discuss.elastic.co/t/input-date-in-put-watcher-api/167374/2 "2019-03-07T02:19:32Z")

</div>

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