KQL | "today" function giving strange result | Need more clarification

Contributor

Hi,

 

I have one property of datetime (Deadline Date) and wanted use that in filtering data in KQL. Result set which I want from KQL is that Articles (Site Pages) should get whose Deadline date (mapped to RefinableDate02) is greater than or equal to current date and time.

 

Currently query has been written like below screenshot.

 

pratikdarak21_0-1645082385667.png

 

I have 2 site pages whose values mapped like below.

pratikdarak21_1-1645082648965.png

*********Result Set from KQL **********

Example 1: No output/result if timestamp have 00:00

 

Example 2: Getting output/result if timestamp have 00:01

 

As mentioned in Microsoft doc (Link), "today" represents the time from the beginning of the current day until the end of the current day.

 

So considering above description, example 1 should also work fine. But, it doesn't.

 

Any documentation/guidance would be very helpful to understand how "today" returns value and getting compared in KQL query for results.

 

Thanks in advance !

 

Regards,

Pratik

0 Replies