January 2002
Intermediate to advanced
640 pages
16h 39m
English
Returns the current date.
CURRENT_DATE
This function does not accept any parameters.
dateThe current date. The returned data type is date.
Use the CURRENT_DATE function to retrieve the current system date as
an object of data type DATE. Use SET DATESTYLE to format
the display of that date to your liking. See the section titled Data Types
in Chapter 3, for more information on this variable and available
options when setting it.
The following example retrieves the current date:
testdb=# SELECT CURRENT_DATE AS today;
today
------------
2001-10-29
(1 row)