Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » UltraLite - Database Management and Reference » UltraLite SQL Reference » UltraLite SQL functions » SQL functions (A-D)

 

DAYNAME function [Date and time]

Returns the name of the day of the week from a date.

Syntax
DAYNAME( date-expression )
Parameters
  • date-expression   The date.

Returns

VARCHAR

Remarks

The English names are returned as: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.

Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the value Saturday.

SELECT DAYNAME ( '1987/05/02' );