Can we do below in rest API sharepoint to filter values where deadline date is than today's date -5 days
$filter=DeadlineDate le datetime'" + today.toISOString() + "-5'
Technology Tips and News
Can we do below in rest API sharepoint to filter values where deadline date is than today's date -5 days
$filter=DeadlineDate le datetime'" + today.toISOString() + "-5'
Hi Amit,
It seems that SharePoint REST service does not support to use Today function directly.
We need to store the value of the date calculated from Today in a variable and then use the variable in SharePoint REST.
About how to calculate the date:
https://msdn.microsoft.com/library/ee532932%28v=vs.94%29.aspx?f=255&MSPPError=-2147217396
Here is a similar thread for your reference:
Thanks,
Victoria