Re: getting the current date - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: getting the current date
Date
Msg-id 200210170201.g9H21XA02555@candle.pha.pa.us
Whole thread Raw
In response to getting the current date  (Joseph Syjuco <joseph@asti.dost.gov.ph>)
List pgsql-sql
Joseph Syjuco wrote:
> 
> how can i get the current date (without the time part) in sql.  I tried
> doing a select now() but it also gives me the time part 

test=> SELECT CURRENT_DATE;   date    
------------2002-10-17
(1 row)

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-sql by date:

Previous
From: Joseph Syjuco
Date:
Subject: getting the current date
Next
From: Tom Lane
Date:
Subject: Re: replace null with 0 in subselect ?