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

SQL Anywhere 10.0.1 » UltraLite - Database Management and Reference » UltraLite SQL Function Reference » Alphabetical list of functions

MOD function [Numeric] Next Page

MONTH function [Date and time]

Returns a month of the given date.


MONTH( date-expression )


date-expression    A datetime value.


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

Standards and compatibility

The following statement returns the value 7.

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