Oracle® OLAP DML Reference 10g Release 1 (10.1) Part Number B10339-02 |
|
|
View PDF |
The TODAY function returns the current date as a DATE value.
Return Value
DATE
Syntax
TODAY
Notes
When you display the result returned by TODAY, the value has the format specified by the date template in the DATEFORMAT option. When the day of the week or the name of the month is used in the date template, TODAY uses the day names specified in the DAYNAMES option and the month names specified in the MONTHNAMES option. You can use the result returned by TODAY anywhere that a DATE value is expected.
You can also use the result where a text value is expected. TODAY automatically converts the date to a text value, using the current template in the DATEFORMAT option to format the text value. When you want to override the current DATEFORMAT template, you can convert the date result to text by using the CONVERT function with a date-format argument.
Examples