DAYNAME

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Returns a three-letter abbreviated day name for a date or timestamp value.

Syntax 

1dayname(<date_value>)

Arguments 

Required 

  • <date_value>: A date, timestamp, or timestamptz value.

Returns 

Returns three-letter abbreviated day-name text. NULL input returns NULL.

Considerations 

  • Names use abbreviations such as Mon, Tue, and Wed.

Examples 

Get day name from a date 

Return the abbreviated day name for January 1, 2024.

1SELECT dayname(DATE '2024-01-01') AS result;

Returns Mon.

Related Documentation