# Date math

**URL:** https://discuss.elastic.co/t/date-math/35759
**Category:** Elasticsearch
**Created:** [November 27, 2015, 12:49pm UTC](https://discuss.elastic.co/t/date-math/35759 "2015-11-27T12:49:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mortenhauberg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mortenhauberg/32/44816_2.png) [@mortenhauberg](https://discuss.elastic.co/u/mortenhauberg)
#### Post date: [November 27, 2015, 12:49pm UTC](https://discuss.elastic.co/t/date-math/35759/1 "2015-11-27T12:49:47Z")

</div>

Hi,

If I do a query with a date range filter with "gte": "now-1M" ([https://gist.github.com/mortenhauberg/4b04e07483135afceb68](https://gist.github.com/mortenhauberg/4b04e07483135afceb68)), then what is a month?  
30 days?  
The same date, last month - 27th of October?

Can't really find anything in the documentation about it

---

<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 5, 2017, 11:35pm UTC](https://discuss.elastic.co/t/date-math/35759/2 "2017-07-05T23:35:22Z")

</div>


