I’ve been using Notion Calendar for a while now, and I can share what worked for me. To include dates when adding events, you need to modify the properties object in your code. Here’s what I did:
Add a ‘Date’ property to your properties object, and set its type to ‘date’. Then, specify the start and end dates for your event. For example:
Insert this into your properties object, alongside the ‘Name’ property. This should allow you to add both the event name and date to your Notion Calendar.
Remember to format your dates correctly as ‘YYYY-MM-DD’. If you’re dealing with specific times, you can include those too in the format ‘YYYY-MM-DDTHH:mm:ss.sssZ’.
Hope this helps! Let me know if you run into any issues.
To add dates to your Notion Calendar events, you’ll need to modify your code slightly. In the properties object, include a ‘Date’ field with the appropriate date information. Here’s an example of how you can structure it:
Replace the date strings with your desired event dates. If you need to work with dynamic dates, you can use JavaScript’s Date object to generate the appropriate strings. This approach should successfully add both the event name and date to your Notion Calendar.