X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D931FD1B37C for ; Thu, 10 Jun 2004 15:00:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67868-01 for ; Thu, 10 Jun 2004 18:00:36 +0000 (GMT) Received: from web13806.mail.yahoo.com (web13806.mail.yahoo.com [216.136.175.16]) by svr1.postgresql.org (Postfix) with SMTP id 53B3ED1B37B for ; Thu, 10 Jun 2004 15:00:30 -0300 (ADT) Message-ID: <20040610180029.13181.qmail@web13806.mail.yahoo.com> Received: from [216.173.173.66] by web13806.mail.yahoo.com via HTTP; Thu, 10 Jun 2004 11:00:29 PDT Date: Thu, 10 Jun 2004 11:00:29 -0700 (PDT) From: Chris Gamache Reply-To: cgg007@yahoo.com Subject: Re: Help with casting timestamp column To: Chris Hoover , pgsql-odbc@postgresql.org In-Reply-To: <40C89C70.1050006@sermonaudio.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200406/20 X-Sequence-Number: 4090 select to_char(my_timestamp,'MM/DD/YYYY HH') from t; returns a string representation of the timestamp... HTH, CG --- Chris Hoover wrote: > I need a bit of help. I have a table full of database stats that are > all timestamped using the now() timestamp. However, I need to pull some > consolidated reports that are based upon hourly activiy. Does anyone > know of a way to get a timestamp column to return as mm/dd/yyyy hh? > > Thanks for any help, > > chris > > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/