I am trying to get data from SharePoint list with REST API that are created today only.
var listName = "Carousel%20News";
var today = new Date().toISOString();
Here is my REST URL :
_spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('" + listName + "')/items?$select=Id,Title&$filter=Created eq '" + today + "'";
But when I use this rest URL, I am not getting the items that are created today.
(I have double checked that there are items present in the list with the today's created date)
My assumption is that, this URL filters based on Date and also Time value.
So is there way that I can use REST filter with today's date only and ignore the time stamp (like we do IncludeTimeValue=False
in CAML query)?