Returns an integer from 1 to 31 corresponding to the day of the month of the date specified.
DAY ( date-expression )
date-expression The date.
The following statement returns the value 12:
SELECT DAY( '2001-09-12' ) FROM iq_dummy
SQL92 Vendor extension
Sybase Compatible with Adaptive Server Enterprise.