# Limitation on Date Math expression

**URL:** <https://discuss.elastic.co/t/limitation-on-date-math-expression/40577>\
**Category:** Elasticsearch\
**Created:** [January 31, 2016, 10:21am UTC](https://discuss.elastic.co/t/limitation-on-date-math-expression/40577 "2016-01-31T10:21:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)\
**Post date:** [January 31, 2016, 10:21am UTC](https://discuss.elastic.co/t/limitation-on-date-math-expression/40577/1 "2016-01-31T10:21:48Z")

</div>

I try to find every first Tuesday of the month from 20h to 7 am Wednesday , I use the following expression:  
from now/M+7d/w+43h to now-1M/M+7d/w+55h  
(Tuesday, January 5 at 8:00 p.m. Wednesday, January 6 8:00)  
=\> it's ok.

but when I want to add a parameter , I have errors  
For example:  
now/M-1M+7d/w+43h =\>KO Syntax error

and then, for example , I have to spend the days in hours for this example to work  
now-1M/M+7d/w+55h =\>OK  
now-1M/M+7d/w+1d+31h =\>KO Syntax error

Is there a limit which prevents to cumulate too setting in date math expression ?

---

<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:20pm UTC](https://discuss.elastic.co/t/limitation-on-date-math-expression/40577/2 "2017-07-05T23:20:07Z")

</div>


