Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
CDPCloud Portal
Sitecore CDP
            • String comparators
            • Number comparators
            • Date comparators
            • Boolean comparators
            • Other comparators
        • Interrogating your organization's data
        • Edit, move, or delete a filter group
        • Apply a set limit filter
        • Calculate segment audience size
    • Segment best practices
    • Using segments
    • View segment usage and details
    • Understanding segment calculations
  • Data browser
  • Glossary
  1. Using comparators
  1. Sitecore CDP
  2. Batch segmentation

Using date comparators in a segment

You can use a date comparator to compare specific dates or durations in rule conditions. All date comparators are based on Universal Coordinated Time (UTC) and not your organization’s timezone.

The following table describes date comparators you can use when creating segments:

Date comparatorDescription
is in the pastVerifies that the date value is in the past specified number of days, weeks, months, or years. This calculation is based on UTC, not your organization’s timezone. For example, you might want to include results that fall within the past 3 days. This might return an unexpected result, if the current time of your organization’s timezone falls a day ahead ahead of UTC. The system includes results for the past 3 days for UTC (13-15 OCT) and not for the last 3 days (14-16 OCT) of your organization’s timezone. (Your local date and current time: 16 OCT 2020 10:00. UTC date and current time: 15 OCT 2020 23:00.)
is not in the pastVerifies that the date value is not in the past specified number of days. This calculation is based on UTC, not your organization’s timezone.
is in the nextVerifies that the date value is in the next specified number of days, weeks, months, or years. This calculation is based on UTC, not your organization’s timezone.
is not in the nextVerifies that the date value is not in the next specified number of days. This calculation is based on UTC, not your organization’s timezone.
is now plusVerifies that the date value is on the future specified number of days or number of weeks. This calculation is based on UTC, not your organization’s timezone.
is now minusVerifies that the date value is on the past specified number of days or number of weeks. This calculation is based on UTC, not your organization’s timezone.
is on the dayVerifies that the date value is on the specified day. This calculation is based on UTC, not your organization’s timezone.
is not on the dayVerifies that the date value is not on the specified date. This calculation is based on UTC, not your organization’s timezone.
is betweenVerifies that the date value is between the range of specified dates. This calculation is based on UTC, not your organization’s timezone.
is not betweenVerifies that the date value is not between the range of specified dates. This calculation is based on UTC, not your organization’s timezone.
is beforeVerifies that the date value is before the specified date. This calculation is based on UTC, not your organization’s timezone. For example, you might want to include results that fall before 15 OCT (according to your timezone). This might return an unexpected result if your organization’s timezone falls a day ahead of UTC, because the calculation would also include results for 16 OCT (according to your timezone).
is afterVerifies that the date value is after the specified date. This calculation is based on UTC, not your organization’s timezone. For example, you might want to include results that fall after 15 OCT (according to your timezone). This might return an unexpected result if your organization’s timezone falls a day ahead of UTC, because the calculation would also include results for 16 OCT (according to your timezone).
is in the yearVerifies that the date value is in the specified year. This calculation is based on UTC, not your organization’s timezone.
is not in the yearVerifies that the date value is not in the specified year. This calculation is based on UTC, not your organization’s timezone.
If you have suggestions for improving this article, let us know!

Documentation Assistant

This assistant uses AI to generate responses based on Sitecore documentation. While it has access to official sources, answers may be incomplete or inaccurate and should not be considered official advice or support.
Powered by
k
kapa.ai
Protected by reCAPTCHA

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use