Skip to main content

$dayOfWeek

The $dayOfWeek operator extracts the day of the week from a date object (0-6, where 0 is Sunday).

Input

  • A single date object

Output

  • The day of the week as an integer (0-6, where 0 is Sunday)

Examples

Extract Day of Week from Date

Result: 0 (Sunday)

Extract Day of Week from Field

Result: The day of the week (0-6) of the event_date field