Oracle® OLAP DML Reference 11g Release 2 (11.2) Part Number E17122-07 |
|
|
PDF · Mobi · ePub |
The DDOF function returns an INTEGER
in the range of 1 through 31, giving the day of the month on which a specified date falls. The result returned by DDOF has the same dimensions as the specified DATE expression.
INTEGER
DDOF(date-expression)
An expression that has the DATE data type, or a text expression that specifies a date. See "Date-only Input Values" for valid formats for a text expression.
OLADM1580Example 7-63 Finding Today's Day of the Month
The following statement returns the day of the month on which today's date falls.
SHOW DDOF(TODAY)
When today's date is September 8, 2000, this statement produces the following output.
8