Skip to main content
On this page

Kater SQL Functions Date parts

KATER__MONTH_NAME

The month's short name, such as Jan.

Family: Date parts

Syntax

KATER__MONTH_NAME(field)

Arguments

ArgumentDescription
fieldThe date or timestamp.

Returns

Text.

Usage notes

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

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_month_name', KATER__MONTH_NAME(orders.order_date)) AS "Month Name"
FROM kater_dataset.orders AS orders
ORDER BY
1
LIMIT 3
Order IDOrder DateMonth Name
O000002025-05-26May
O000012025-11-28Nov
O000022025-07-25Jul

Compiles to

STRFTIME(orders.order_date, '%b')
MONTHNAME(orders.order_date)

See also