From: Michael Fuhr <mike@fuhr.org>
To: Jim Fu <Jim.Fu@LogixCom.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: to_date
Date: Mon, 13 Feb 2006 14:11:43 -0700
Message-ID: <20060213211142.GA73849@winnie.fuhr.org> (raw)
In-Reply-To: <2BE5FA188E433143A09D9881BB923D32096F30@hou1x.Logixcom.com>
References: <2BE5FA188E433143A09D9881BB923D32096F30@hou1x.Logixcom.com>
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
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-admin@postgresql.org
Cc: mike@fuhr.org, Jim.Fu@LogixCom.com
Subject: Re: to_date
In-Reply-To: <20060213211142.GA73849@winnie.fuhr.org>
References: <2BE5FA188E433143A09D9881BB923D32096F30@hou1x.Logixcom.com> <20060213211142.GA73849@winnie.fuhr.org>
* 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