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

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

 

MONTH function [Date and time]

Returns a month of the given date.

Syntax
MONTH( date-expression )
Parameters
  • date-expression   A datetime value.

Returns

SMALLINT

Remarks

The value returned is a number from number from 1 to 12 corresponding to the datetime month.

Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the value 7.

SELECT MONTH( '1998-07-13' );