Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 703BB475F25 for ; Wed, 16 Oct 2002 22:02:27 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 1CF08475F1B for ; Wed, 16 Oct 2002 22:02:24 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g9H21XA02555; Wed, 16 Oct 2002 22:01:33 -0400 (EDT) From: Bruce Momjian Message-Id: <200210170201.g9H21XA02555@candle.pha.pa.us> Subject: Re: getting the current date In-Reply-To: <1034845906.2085.1.camel@Falcon> To: Joseph Syjuco Date: Wed, 16 Oct 2002 22:01:32 -0400 (EDT) Cc: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/188 X-Sequence-Number: 9905 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, Pennsylvania 19073