Skip to content

how to write to a page with "Date" parameters from a string in dd/mm/yyyy hh:mm:ss? #129

Answered by ramnes
albertlau128 asked this question in Q&A
Discussion options

You must be logged in to vote

A datetime object 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 your datum variable 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!

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@albertlau128
Comment options

@jg33
Comment options

@ramnes
Comment options

@jg33
Comment options

@ramnes
Comment options

Answer selected by albertlau128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants