Forum Discussion
PASinATX
Jun 13, 2022Copper Contributor
Event Web Part Current Event
Is it possible to display only the current items from an Event List using the Event web part in Sharepoint. I don't have any problem displaying "This Week" or any of the other choices, but I really...
PASinATX
Jun 15, 2022Copper Contributor
Thanks David.
I'll see if I can figure out your alternative solutions.
I know how to use the Highlighted Content web part but I'll have to learn how to write the KQL code to pull back Today or Now or Current.
p
DaveMehr365
Jun 20, 2022MVP
Hello PASinATX
you can do it like this:
contenttype:Event LastModifiedTime:Today
Here are more information about kql queries with date:
Regards, Dave
- PASinATXJun 23, 2022Copper ContributorThanks Dave. I'll try this.
I'm looking for anything that falls between the start time and the end time. So, do you think contenttype:Event startdatetime<=Today
and
contenttype:Event enddatetime>=Today
will work, or am I using the wrong syntax?- DaveMehr365Jun 27, 2022MVP
Hello PASinATX
for the <= operator i had to change the query to the contenttypeid, before contenttype:
(contenttypeid:0x010200E10C0CC6C8DBDA4B8BC0A76CAB378AE0) AND (LastModifiedTime<=Today)
Regards, Dave