# Understanding the result for the query

**URL:** https://discuss.elastic.co/t/understanding-the-result-for-the-query/307861
**Category:** Kibana
**Created:** [June 22, 2022, 10:07am UTC](https://discuss.elastic.co/t/understanding-the-result-for-the-query/307861 "2022-06-22T10:07:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Seemant\_Bind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seemant_bind/32/107045_2.png) [@Seemant\_Bind](https://discuss.elastic.co/u/Seemant_Bind)
#### Post date: [June 22, 2022, 10:07am UTC](https://discuss.elastic.co/t/understanding-the-result-for-the-query/307861/1 "2022-06-22T10:07:16Z")

</div>

Continuing the discussion from [Restrict specific time range](https://discuss.elastic.co/t/restrict-specific-time-range/261496/4):  
Hi,  
As per the issue, you have recommended that **time:(from:now%2Fd-12h,to:now%2Fd-12h))** will give data from today's date - 12 hour i.e 12am to 12pm. In my case I need data for 1 day for which I have used **time:(from%3Anow%2Fd-24h%2Cto%3Anow%2Fd-24h)** which should give us data for 1 day, right? But after downloading pdf with this, I can see that the time range mentioned in the pdf is for the same day (i.e Jun 21, 2022 @ 00:00:00.000 to Jun 21, 2022 @ 00:00:00.000) but the result/output is showing data for the whole day(i.e Jun 21, 2022 @ 00:00:00.000 to Jun 22, 2022 @ 00:00:00.000) which is correct. Whereas when I have changed the url to **time:(from%3Anow%2D1d%2Fd%2Cto%3Anow%2Fd)** it is showing correct time range in the dashboard's pdf but the result/output data is not correct in that. Could you please explain it? @Marta_Bondyra

Scenerio1: Showing wrong date but correct data  
 ![MicrosoftTeams-image (2)](https://us1.discourse-cdn.com/elastic/original/3X/c/7/c7a9a69e8700eb7167c7146f3f4bb7b836f7419a.png)

Scenerio2: Showing correct date but wrong data  
 ![MicrosoftTeams-image (1)](https://us1.discourse-cdn.com/elastic/original/3X/b/3/b3b7d6f3d8b1d9c23a05532298fc9a982bcfd72e.png)

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [July 13, 2022, 4:47pm UTC](https://discuss.elastic.co/t/understanding-the-result-for-the-query/307861/2 "2022-07-13T16:47:26Z")

</div>

Hey there, sorry for the delay in responding. What do you mean the data is not correct? If you need a full day, you can just click on 'today' in the timepicker:

 ![Screenshot 2022-07-13 at 18.46.22](https://us1.discourse-cdn.com/elastic/original/3X/5/9/5911662c5fb6012b77f972a672c0e916f2c91fde.png)

Also `time:(from:now%2Fd,to:now%2Fd))` works fine for me. Please let me know how you validate the data is not correct.

---

<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: [August 10, 2022, 4:48pm UTC](https://discuss.elastic.co/t/understanding-the-result-for-the-query/307861/3 "2022-08-10T16:48:06Z")

</div>

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