Skip to main content
On this page

Kater SQL Functions Date parts

Date parts

A date part gives one part of a date as a number or a name, such as the day of the week.

Use one to compare the same part across periods, such as each weekday. See Dates.

FunctionWhat it does
KATER__DAY_OF_WEEKThe day’s short name, such as Mon.
KATER__DAY_OF_WEEK_INDEXThe day’s number in its week, from 0 for Sunday to 6 for Saturday.
KATER__DAY_OF_MONTHThe day of its month, from 1 to 31.
KATER__DAY_OF_QUARTERThe day of its quarter, counted from 1.
KATER__DAY_OF_YEARThe day of its year, from 1 to 366.
KATER__WEEK_OF_YEARThe ISO week of its year, from 1 to 53.
KATER__MONTH_NUMThe month’s number, from 1 to 12.
KATER__MONTH_NAMEThe month’s short name, such as Jan.
KATER__QUARTER_OF_YEARThe quarter’s number, from 1 to 4.
KATER__HOUR_OF_DAYThe hour of its day, from 0 to 23.
KATER__MINUTE_OF_HOURThe minute of its hour, from 0 to 59.