Re: to_date

From: "Goulet, Dick" <DGoulet(at)vicr(dot)com>
To: "Jim Fu" <Jim(dot)Fu(at)LogixCom(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: to_date
Date: 2006-02-13 21:18:30
Message-ID: 4001DEAF7DF9BD498B58B45051FBEA65032FBC28@25exch1.vicorpower.vicr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

If your using V7.4 it doesn't but the following will create one.

CREATE OR REPLACE FUNCTION to_date(text, text)
RETURNS "timestamp" AS
'begin
return to_timestamp($1, $2);
end;'
LANGUAGE 'plpgsql' STABLE STRICT;

_____

From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Jim Fu
Sent: Monday, February 13, 2006 3:45 PM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] to_date

I am new here, just wondering if PostgreSQL has a similar function
TO_DATE ('02/12/2006','mm/dd/yyyy')?

Thanks!

Jim Fu

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jim Fu 2006-02-13 21:22:47 Re: to_date
Previous Message Michael Fuhr 2006-02-13 21:11:43 Re: to_date