Skip to main content
On this page

Kater SQL Functions Date parts

KATER__DAY_OF_WEEK

The day's short name, such as Mon.

Family: Date parts

Syntax

KATER__DAY_OF_WEEK(field)

Arguments

ArgumentDescription
fieldThe date or timestamp.

Returns

Text.

Usage notes

  • Names sort in alphabetical order, so a table puts Fri before Mon. Sort by the number instead to keep the calendar’s order. Use KATER__DAY_OF_WEEK_INDEX.

Example

This Sandbox query reads the sample shop’s orders. The table shows the rows that Kater gave.

SELECT
orders.order_id AS "Order ID",
orders.order_date AS "Order Date",
DIMENSION('order_date_day_of_week', KATER__DAY_OF_WEEK(orders.order_date)) AS "Day of Week"
FROM kater_dataset.orders AS orders
ORDER BY
1
LIMIT 3
Order IDOrder DateDay of Week
O000002025-05-26Mon
O000012025-11-28Fri
O000022025-07-25Fri

Compiles to

STRFTIME(orders.order_date, '%a')
DAYNAME(orders.order_date)

See also