In SP 2013 on-prem, I am using display template and a list to show alerts on the front page of the intranet. I want the alerts to be showed from the list when the list item has a start date that is less than or equal to today, and end date that is greater than or equal to today.
This is my query, where Date01 is start date, and date02 is end date:
path:{Site.URL} ContentTypeId:0x0100277BL3829BB9VIC110PXT410125FCC83* Date01<={Today} Date02>={Today} My query works, but the only issue is that Date02 is of type Date and Time, and KQL query does not care about time. I want {Today} to behave like DateTime.Now, while it behaves like Date.Now
How can I do that ? Please advice.