pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Gamache <cgg007@yahoo.com>
To: Chris Hoover <revoohc@sermonaudio.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Help with casting timestamp column
Date: Thu, 10 Jun 2004 11:00:29 -0700 (PDT)
Message-ID: <20040610180029.13181.qmail@web13806.mail.yahoo.com> (raw)
In-Reply-To: <40C89C70.1050006@sermonaudio.com>


select to_char(my_timestamp,'MM/DD/YYYY HH') from t;

returns a string representation of the timestamp...

HTH,

CG


--- Chris Hoover <revoohc@sermonaudio.com> 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/ 



view thread (4+ messages)  latest in thread

Message-ID: <20040610180029.13181.qmail@web13806.mail.yahoo.com>
Permalink:  ../20040610180029.13181.qmail@web13806.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040610180029.13181.qmail@web13806.mail.yahoo.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: cgg007@yahoo.com, revoohc@sermonaudio.com
  Subject: Re: Help with casting timestamp column
  In-Reply-To: <20040610180029.13181.qmail@web13806.mail.yahoo.com>
  References: <40C89C70.1050006@sermonaudio.com> <20040610180029.13181.qmail@web13806.mail.yahoo.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