【问题标题】:What is the Date format in the Notion API?Notion API 中的日期格式是什么?
【发布时间】:2021-08-04 10:01:29
【问题描述】:
{
    "object": "error",
    "status": 400,
    "code": "validation_error",
    "message": "{Bal has an invalid date value."
}

我尝试了很多类型,总是失败。为什么不直接写在文档中。

2021/05/14
2021/14/05
2021/5/14
2021/05/14 00:00:00

【问题讨论】:

    标签: notion-api


    【解决方案1】:

    Notion API 使用 ISO 8601 日期标准。 https://en.wikipedia.org/wiki/ISO_8601

    【讨论】:

      【解决方案2】:
                  "date": {
                      "start": "2021-05-17T12:00:00Z",
                      "end": "2021-05-17T12:00:00Z"
                  }
      

      "end" value 如果为 null,则此属性的日期值不是范围。 date type link

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-04-01
        • 1970-01-01
        • 1970-01-01
        • 2012-07-19
        • 2021-06-24
        相关资源
        最近更新 更多