Re: to_date - Mailing list pgsql-admin

From Michael Fuhr
Subject Re: to_date
Date
Msg-id 20060213211142.GA73849@winnie.fuhr.org
Whole thread Raw
In response to to_date  ("Jim Fu" <Jim.Fu@LogixCom.com>)
List pgsql-admin
On Mon, Feb 13, 2006 at 02:44:45PM -0600, Jim Fu wrote:
> I am new here, just wondering if PostgreSQL has a similar function
> TO_DATE ('02/12/2006','mm/dd/yyyy')?

Yes:

test=> select to_date('02/12/2006','mm/dd/yyyy');
  to_date
------------
 2006-02-12
(1 row)

The documentation describes the available functions; here are some
useful links:

http://www.postgresql.org/docs/
http://www.postgresql.org/docs/8.1/interactive/functions.html

Your client interface might have a way to list or search for
functions.  For example, in psql you can use the \df command:

test=> \df to_date
                       List of functions
   Schema   |  Name   | Result data type | Argument data types
------------+---------+------------------+---------------------
 pg_catalog | to_date | date             | text, text
(1 row)

Are you having trouble with to_date or are you just curious?  If
you're having trouble then please show what you're doing, the exact
error message or unexpected output, the version of PostgreSQL, and
the operating system name and version.

--
Michael Fuhr

pgsql-admin by date:

Previous
From: Guido Barosio
Date:
Subject: Re: How to VACUUM this table? "998994633 estimated total rows"
Next
From: "Jim Fu"
Date:
Subject: Re: to_date