pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: getting the current date
3+ messages / 3 participants
[nested] [flat]
* Re: getting the current date
@ 2002-10-17 02:01 Bruce Momjian <pgman@candle.pha.pa.us>
parent: Joseph Syjuco <joseph@asti.dost.gov.ph>
1 sibling, 0 replies; 3+ messages in thread
From: Bruce Momjian @ 2002-10-17 02:01 UTC (permalink / raw)
To: Joseph Syjuco <joseph@asti.dost.gov.ph>; +Cc: 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, Pennsylvania 19073
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: getting the current date
@ 2002-10-17 07:26 Ludwig Lim <lud_nowhere_man@yahoo.com>
parent: Joseph Syjuco <joseph@asti.dost.gov.ph>
1 sibling, 0 replies; 3+ messages in thread
From: Ludwig Lim @ 2002-10-17 07:26 UTC (permalink / raw)
To: Joseph Syjuco <joseph@asti.dost.gov.ph>; +Cc: pgsql-sql
--- Joseph Syjuco <joseph@asti.dost.gov.ph> wrote:
>
> how can i get the current date (without the time
> part) in sql.
--> try SELECT current_date();
ludwig.
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* getting the current date
@ 2002-10-17 09:11 Joseph Syjuco <joseph@asti.dost.gov.ph>
0 siblings, 2 replies; 3+ messages in thread
From: Joseph Syjuco @ 2002-10-17 09:11 UTC (permalink / raw)
To: pgsql-sql
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
TIA
joseph
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-10-17 09:11 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-17 09:11 getting the current date Joseph Syjuco <joseph@asti.dost.gov.ph>
2002-10-17 02:01 ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-10-17 07:26 ` Ludwig Lim <lud_nowhere_man@yahoo.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox