Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Databases - Practical PostgreSQL
Previous Page Home Next Page

CURRENT_DATE

Name

CURRENT_DATE -- Returns the current date.

Synopsis

    CURRENT_DATE

Parameters

This function does not accept any parameters.

Results

date

The current date. The returned data type is date.

Description

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 called Data Types in Chapter 3" in Chapter 3, for more information on this variable and available options when setting it.

Examples

The following example retrieves the current date:

testdb=# 
SELECT CURRENT_DATE AS today;

    today
------------
 2001-10-29
(1 row)
Databases - Practical PostgreSQL
Previous Page Home Next Page

 
 
  Published under the terms of the Open Publication License Design by Interspire