From: Michael Zhang <mzhang@ifscorp.com>
To: pgsql-interfaces@postgresql.org
Subject: Newbie Q: How to deal with date/time with libpq or ecpg?
Date: Wed, 24 Feb 1999 10:38:42 -0500
Message-ID: <36D41D02.F4415E1F@insuremarket.com> (raw)
Hi, I am new to the postgreSQL.
I would like to set up my own WWW server using linux/postgreSQL. Some of
my web applications use many date/time manipulations. For example, I
would like to dynamicly display a date of birth column with specified
format. I could do it on Oracle like this:
SELECT to_char(DateofBirth, 'MM-DD-YYYY') from Employee_tbl where
First_nm = 'Mike';
Then I could use Pro*C to retrive the result into a char[] array.
But how can I receiver this kind of information with specified format in
postgreSQL by using libpq or ecpg?
Thanks in advance!
Mike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: mzhang@ifscorp.com
Subject: Re: Newbie Q: How to deal with date/time with libpq or ecpg?
In-Reply-To: <36D41D02.F4415E1F@insuremarket.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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