Received: from firewall-r.insuremarket.com (mailhost.ifscorp.com [205.130.198.6]) by hub.org (8.9.2/8.9.1) with SMTP id KAA50791 for ; Wed, 24 Feb 1999 10:38:33 -0500 (EST) (envelope-from mzhang@ifscorp.com) Received: by firewall-r.insuremarket.com (951211.SGI.8.6.12.PATCH1042/951211.SGI.AUTO) for id KAA22630; Wed, 24 Feb 1999 10:37:19 -0500 Received: from thor.insuremarket.com(172.23.2.139) by firewall-r.insuremarket.com via smap (3.1) id xma022619; Wed, 24 Feb 99 10:37:03 -0500 Received: from insuremarket.com ([172.23.2.154]) by thor.insuremarket.com (Netscape Messaging Server 3.52) with ESMTP id AAAA27 for ; Wed, 24 Feb 1999 10:34:08 -0500 Message-ID: <36D41D02.F4415E1F@insuremarket.com> Date: Wed, 24 Feb 1999 10:38:42 -0500 From: "Michael Zhang" Organization: Interactive Insurance Services X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Newbie Q: How to deal with date/time with libpq or ecpg? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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