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

DATETIME function [Date and time] Next Page

DAY function [Date and time]

Returns an integer from 1 to 31.


DAY( date-expression )


date-expression    The date.


The integers 1 to 31 correspond to the day of the month in a date.

Standards and compatibility

The following statement returns the value 12.

SELECT DAY( '2001-09-12' );