how to write to a page with "Date" parameters from a string in dd/mm/yyyy hh:mm:ss? #129
-
|
I wish to populate the record with a property list, but how should this property be coded?
but the API refuses to allow this. I have a datetime object |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
A Also, Notion expects a JSON object as a value for {"start": "2021-05-11T11:00:00.000-04:00"}Have a look at the documentation (and its examples) here to see what kind of format Notion expects: https://developers.notion.com/reference/property-value-object#date-property-values Hope that helps! |
Beta Was this translation helpful? Give feedback.

A
datetimeobject won't work, you have to transform it to something that's friendlier to JSON (for now).Also, Notion expects a JSON object as a value for
date, so yourdatumvariable has to be a dictionary, e.g.:{"start": "2021-05-11T11:00:00.000-04:00"}Have a look at the documentation (and its examples) here to see what kind of format Notion expects: https://developers.notion.com/reference/property-value-object#date-property-values
Hope that helps!