【问题标题】:SharePoint 2013 REST API, filter list items by datetimeSharePoint 2013 REST API,按日期时间筛选列表项
【发布时间】:2014-02-03 11:23:43
【问题描述】:

我需要从今天创建的列表中获取项目。

基本上每天在列表中随时创建一个项目。我需要的是能够使用 rest api 获取该项目。

http://server.domain.com/_api/web/lists/GetByTitle('MyList')/items/?$filter=Created eq datetime('DD.MM.YYYY')

但这不起作用......

知道如何使用 rest 获取今天创建的项目吗?

【问题讨论】:

    标签: sharepoint-2013


    【解决方案1】:

    日期时间函数应该像datetime'01.03.2013'一样使用

    http://server.domain.com/_api/web/lists/GetByTitle('MyList')/items/?$filter=Created eq datetime'01.03.2013'
    

    【讨论】:

      猜你喜欢
      • 2016-01-08
      • 2020-07-28
      • 1970-01-01
      • 1970-01-01
      • 2019-02-26
      • 2011-06-14
      • 2014-11-26
      • 1970-01-01
      相关资源
      最近更新 更多