Skip to content

feat: support date ranges (start + end) in page set#2

Merged
4ier merged 1 commit intomainfrom
fix/date-range-support
Mar 10, 2026
Merged

feat: support date ranges (start + end) in page set#2
4ier merged 1 commit intomainfrom
fix/date-range-support

Conversation

@4ier
Copy link
Owner

@4ier 4ier commented Mar 10, 2026

Closes #1

Uses / separator to split start and end dates in page set:

# Date range
notion page set <id> 'Due=2026-03-07T20:00:00+01:00/2026-03-07T21:00:00+01:00'

# Single date (unchanged)
notion page set <id> 'Due=2026-03-07'

Changes:

  • buildPropertyValue: split date value on /, set end if present
  • Added TestBuildPropertyValueDateRange covering both single and range cases
  • Fully backward compatible

Use / separator to specify end date:
  notion page set <id> 'Due=2026-03-07T20:00/2026-03-07T21:00'

Single dates continue to work unchanged.

Closes #1
@4ier 4ier merged commit 1625ccb into main Mar 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: support date ranges (start + end) in page set

1 participant