Microsoft图形 - 筛选开始/日期时间



使用Microsoft Graph的nodejs库,尝试查询我的日历并返回接下来的5个事件。

查询设置:

client
        .api('/me/events')
        .header('X-AnchorMailbox', email)
        .top(5)
        .filter('Start/DateTime ge 2017-05-26T00:00:00')
        .select('subject,start,end')
        .orderby('start/dateTime DESC')

执行时,图形回复如下:

"code":"BadRequest","message":"The DateTimeOffset text '2017-05-26T00:00:00.000' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range."

2017-05-26T00:00:00'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?'不匹配吗?

简单的错误:

.filter(`Start/DateTime ge '2017-05-26T00:00:00'`)

最新更新