# Ho can use date range?

**URL:** <https://discuss.elastic.co/t/ho-can-use-date-range/40782>\
**Category:** Kibana\
**Created:** [February 2, 2016, 7:44pm UTC](https://discuss.elastic.co/t/ho-can-use-date-range/40782 "2016-02-02T19:44:07Z")\
**Posts on this page:** 3\
**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:** [February 2, 2016, 7:44pm UTC](https://discuss.elastic.co/t/ho-can-use-date-range/40782/1 "2016-02-02T19:44:07Z")

</div>

Hello,

I need help 🙂

In date range field, I think that we are limited in the number of characters.

For example, if I put the following expression , it's ok :  
now/y+1M/M+1d

but if I add parameters , I get an error:  
now/y+1M/M/w+1d  
or  
now-1y/y+1M/M+1d  
or other expression that exceed 11 characters  
I really feel that the error is related to the number of characters, not a syntax error .

Is it possible to exceed this limit ?

I need to recover first Tuesday of every month:  
1st Tuesday of the month from 8 PM to 7 AM 1st Wednesday .  
Which forces me to accumulate many parameters  
I need to  
now/y+1M/M/w+1d+20h  
to  
now/y+1M/M/w+2d+7h  
but it is refused .

or I can put  
now/w-1w+2d-5h to now/w-1w+2d+7h =\> Syntax ok \< 11 characters  
now/w-3w+2d-5h to now/w-2w+2d+7h =\> Syntax ok \< 11 characters  
now/w-3w+2d-5h to now/w-3w+2d+7h =\> Syntax ok \< 11 characters  
...  
now/w-9w+2d-5h to now/w-9w+2d+7h =\> Syntax ok \< 11 characters  
now/w-10w+2d-5h to now/w-10w+2d+7h =\> Syntax ko \> 11 characters

Example of correct syntax:  
[![](https://sea2.discourse-cdn.com/elastic/uploads/default/optimized/2X/f/f9a5d2b14f9bb7c84f69a4da82a42bfdde56bd85_1_690x313.PNG) ](https://sea2.discourse-cdn.com/elastic/uploads/default/optimized/2X/f/f9a5d2b14f9bb7c84f69a4da82a42bfdde56bd85_1_690x313.PNG)

Can you help me please ?  
Thanks

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [February 8, 2016, 7:23pm UTC](https://discuss.elastic.co/t/ho-can-use-date-range/40782/2 "2016-02-08T19:23:14Z")

</div>

I haven't tested it myself, but it may well be a bug - feel free to file an issue in Github with the team to get their take: [https://github.com/elastic/kibana/issues](https://github.com/elastic/kibana/issues)

---

<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, 2:03pm UTC](https://discuss.elastic.co/t/ho-can-use-date-range/40782/3 "2017-07-06T14:03:11Z")

</div>


