Skip site navigation (1) Skip section navigation (2)

Newbie Q: How to deal with date/time with libpq or ecpg?

From: "Michael Zhang" <mzhang(at)ifscorp(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Newbie Q: How to deal with date/time with libpq or ecpg?
Date: 1999-02-24 15:38:42
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
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!


pgsql-interfaces by date

Next:From: Valerio SantinelliDate: 1999-02-24 16:11:15
Subject: Error with MSAccess97 subforms and PostODBC
Previous:From: Tom LaneDate: 1999-02-24 15:20:25
Subject: Re: [INTERFACES] problems with pgaccess

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group