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' );