📜  在 sharepoint rest api get request 中过滤日期明智 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:50.799000             🧑  作者: Mango

代码示例1
var requestUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('" + _weaklyQuestion + "')/items?$select=Id,Title,answersOptions,dateFrom,dateTo&$filter=(datetime('" + ReFormatTime() + "') ge dateFrom) and (datetime('" + ReFormatTime() + "') le dateTo)&$top=1";