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

SQL Anywhere 11.0.1 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » SQL functions (E-O)

 

MONTHNAME function [Date and time]

Returns the name of the month from a date.

Syntax
MONTHNAME( date-expression )
Parameters
  • date-expression   The datetime value.

Returns

VARCHAR

Remarks

The MONTHNAME function returns a string, even if the result is numeric, such as 2 for the month of February.

Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the value September.

SELECT MONTHNAME( '1998-09-05' );