sharepoint rest API filter values where deadline date is than today's date -5 days

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'		
August 28th, 2015 9:50am

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:

https://social.msdn.microsoft.com/Forums/silverlight/en-US/48c9f9a5-adff-4def-a9c7-5f7d1af1f193/whats-the-rest-syntax-for-today?forum=sharepointdevelopment

Thanks,

Victoria

Free Windows Admin Tool Kit Click here and download it now
August 31st, 2015 3:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics