Re: Time Formats

From: Jeffery L Post <postjeff(at)uwm(dot)edu>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Time Formats
Date: 2001-01-12 22:47:35
Message-ID: Pine.OSF.3.96.1010112164234.12309A-100000@alpha2.csd.uwm.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 12 Jan 2001, Bruno Wolff III wrote:

> On Fri, Jan 12, 2001 at 02:02:28PM -0600,
> Jeffery L Post <postjeff(at)uwm(dot)edu> wrote:
> > Is there any way to have a time datatype returned in various formats?
> >
> > ex. 1:30 PM
> >
> > Maybe by setting a session variable?
>
> You can use to_char in a query to convert a date and/or time into a character
> string in the format you want.
>

I looked up the Function to_char it expects two passed variable COL and
MASK. What is the format of the MASK that it expects and could you give an
example of the use of this funcion in a query that returns multiple
columns.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Niral Trivedi 2001-01-12 22:58:11 ODBC connect in ERWin
Previous Message Bruno Wolff III 2001-01-12 22:26:49 Re: Re: php, time and postgresql