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 XAA86162 for ; Tue, 23 Feb 1999 23:33:11 -0500 (EST) (envelope-from mzhang@ifscorp.com) Received: by firewall-r.insuremarket.com (951211.SGI.8.6.12.PATCH1042/951211.SGI.AUTO) for id XAA27171; Tue, 23 Feb 1999 23:31:54 -0500 Received: from thor.insuremarket.com(172.23.2.139) by firewall-r.insuremarket.com via smap (3.1) id xma027167; Tue, 23 Feb 99 23:31:28 -0500 Received: from insuremarket.com ([172.23.2.144]) by thor.insuremarket.com (Netscape Messaging Server 3.52) with ESMTP id AAA666D for ; Tue, 23 Feb 1999 23:28:27 -0500 Message-ID: <36D38019.BD27969E@insuremarket.com> Date: Tue, 23 Feb 1999 23:29:13 -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 interface 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_date(DateofBirth, 'MM-DD-YYYY') from Employee_tbl where First_nm = 'Mike'; But how can I receiver this kind of information with specified format in postgreSQL by using libpq or ecpg? Thanks in advance! Mike