# Get date histogram date for nested aggregations

**URL:** <https://discuss.elastic.co/t/get-date-histogram-date-for-nested-aggregations/20238>\
**Category:** Elasticsearch\
**Created:** [October 14, 2014, 11:48am UTC](https://discuss.elastic.co/t/get-date-histogram-date-for-nested-aggregations/20238 "2014-10-14T11:48:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raz\_Lachyani](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@Raz\_Lachyani](https://discuss.elastic.co/u/Raz_Lachyani)\
**Post date:** [October 14, 2014, 11:48am UTC](https://discuss.elastic.co/t/get-date-histogram-date-for-nested-aggregations/20238/1 "2014-10-14T11:48:09Z")

</div>

Is it possible to get the date of the date histogram for nested  
aggregations?

Suppose I want to calculate past events from month before aggregation with key\_as\_string  
: 10-10-2012,  
how can I do this ?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5878d92c-e733-4216-872d-8d145d8a7f8e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5878d92c-e733-4216-872d-8d145d8a7f8e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:56am UTC](https://discuss.elastic.co/t/get-date-histogram-date-for-nested-aggregations/20238/2 "2017-07-06T00:56:22Z")

</div>


