Defines the day that weeks start on. Defaults toDocumentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Monday.
OMNI_WEEK() and OMNI_DAY_OF_WEEK_NUMBER() SQL operators are impacted by this setting.Syntax
Properties
The day of the week that weeks start on. Valid values are:
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.Can be set dynamically using user attributes. See the Examples section for an example.Examples
Static value
Dynamic value using user attributes
This example assumes your Omni instance has an existing user attribute calledweek_start and that users have been assigned appropriate day values, such as Sunday for US users or Monday for European users.
Set week start day based on user's region