Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
SendCloud Portal
Sitecore Send API documentation
  • Introduction to the Sitecore Send API
    • Base URL
    • Authenticate a Sitecore Send API request
    • HTTP methods
    • Request and response parameters
    • HTTP status codes
    • API rate limiting
    • Create an email list and add subscribers
        • List of segmentation fields
        • List of comparers
        • List of date functions
        • List of date constrain parameters
  1. Introduction to segmentation
  1. Sitecore Send API documentation
  2. Getting started with the Sitecore Send API

List of date functions

The following table describes the DateFunction values that you can use with fields that have a DateTime data type. You can query based on a property of the date instead of the date itself. The calculation depends on the TimeZoneUsed parameter. Possible time zone values are Local or Utc. When Local is used, the user’s time zone offset is considered.

Function nameCodeDescription
Year1The four-digit year part of the date.
Month2The month part of the date from 1 to 12.
Day3The day part of the date from 1 to 31.
WeekDay4The day of the week from 1 to 7. For example, 1 for Sunday, 2 for Monday, and so on.
DaysPassed5The number of days that have passed until now.
HoursPassed6The number of hours that have passed until now.
MinutesPassed7The number of minutes that have passed until now.
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