td_day_of_week/DayOfWeek | SQL Date/Time Functions & Expressions | Vantage - 17.10 - td_day_of_week/DayOfWeek - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Date and Time Functions and Expressions

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Programming Reference
Publication ID
English (United States)

Returns the day of the week on which the specified date falls.

The td_day_of_week function provides improved performance compared to using the Sys_Calendar.Calendar system view to obtain similar results.

ANSI Compliance

This statement is a Teradata extension to the ANSI SQL:2011 standard.

Result Type

The result is an INTEGER value from 1 through 7, representing the day of the week, where Sunday = 1 and Saturday = 7.