Skip to content

docs: Add date operators to property filter operators reference#15359

Merged
dmarticus merged 1 commit intomasterfrom
docs-writer-ai-update-2026-02-27T02-29-26-367Z-s2oiuv
Feb 27, 2026
Merged

docs: Add date operators to property filter operators reference#15359
dmarticus merged 1 commit intomasterfrom
docs-writer-ai-update-2026-02-27T02-29-26-367Z-s2oiuv

Conversation

@inkeep
Copy link
Contributor

@inkeep inkeep bot commented Feb 27, 2026

Changes

Adds documentation for date operators (is date before, is date after) to the property filter operators reference page.

This documents the date validation behavior added in PostHog/posthog#49283.

Added content

  • Date operators section - New section documenting is date before and is date after operators
  • Valid date formats - Documents accepted formats:
    • Relative dates: -7d, 30d, -1w, -1m, -1y, -1h
    • ISO 8601 dates: 2024-01-15
    • ISO 8601 datetimes: 2024-01-15T10:30:00Z
  • Overflow protection note - Documents that relative date values with magnitudes ≥ 10,000 are rejected

Notes

  • Only is date before and is date after are documented. is_date_exact is intentionally excluded as it's not yet fully supported (per PR review discussion and posthog/models/property/util.py)

This PR was created by the Inkeep Content Writer agent, which is maintained by the Docs and Wizard team. Please reach out on Slack for help if needed.

Documents the `is_date_before` and `is_date_after` operators with their
valid date formats (relative dates, ISO 8601 dates/datetimes) and the
overflow protection for relative date values >= 10,000.

Reflects changes from PostHog/posthog#49283 which added date value
validation to the cohort API.
@inkeep inkeep bot requested a review from dmarticus February 27, 2026 02:31
@github-actions
Copy link
Contributor

github-actions bot commented Feb 27, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Feb 27, 2026 02:38AM

@github-actions
Copy link
Contributor

Vale prose linter → found 0 errors, 16 warnings, 0 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/docs/data/property-filters.mdx — 0 errors, 16 warnings, 0 suggestions
Line Severity Message Rule
20:104 warning 'substring' is a possible misspelling. PostHogBase.Spelling
23:33 warning 'semver' is a possible misspelling. PostHogBase.Spelling
59:14 warning 'datetimes' is a possible misspelling. PostHogBase.Spelling
63:4 warning 'Semver' is a possible misspelling. PostHogBase.Spelling
65:1 warning 'Semver' is a possible misspelling. PostHogBase.Spelling
65:195 warning 'semver' is a possible misspelling. PostHogBase.Spelling
71:17 warning 'semver' is a possible misspelling. PostHogBase.Spelling
72:21 warning 'semver' is a possible misspelling. PostHogBase.Spelling
73:23 warning 'semver' is a possible misspelling. PostHogBase.Spelling
74:33 warning 'semver' is a possible misspelling. PostHogBase.Spelling
75:20 warning 'semver' is a possible misspelling. PostHogBase.Spelling
76:30 warning 'semver' is a possible misspelling. PostHogBase.Spelling
77:22 warning 'semver' is a possible misspelling. PostHogBase.Spelling
78:22 warning 'semver' is a possible misspelling. PostHogBase.Spelling
79:19 warning 'semver' is a possible misspelling. PostHogBase.Spelling
81:46 warning 'semver' is a possible misspelling. PostHogBase.Spelling

Copy link
Contributor

@dmarticus dmarticus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank u robot

@dmarticus dmarticus merged commit 2838554 into master Feb 27, 2026
17 checks passed
@dmarticus dmarticus deleted the docs-writer-ai-update-2026-02-27T02-29-26-367Z-s2oiuv branch February 27, 2026 18:48
sarahxsanders pushed a commit that referenced this pull request Feb 27, 2026
Documents the `is_date_before` and `is_date_after` operators with their
valid date formats (relative dates, ISO 8601 dates/datetimes) and the
overflow protection for relative date values >= 10,000.

Reflects changes from PostHog/posthog#49283 which added date value
validation to the cohort API.

Co-authored-by: inkeep[bot] <257615677+inkeep[bot]@users.noreply.github.com>
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.

1 participant