Microsoft Graph – 筛选开始/date时间
使用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')
执行时graphics回复:
"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'`)