Re: to_date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx [mailto:pgsql-admin-owner@xxxxxxxxxxxxxx] On Behalf Of Jim Fu
Sent: Monday, February 13, 2006 3:45 PM
To: pgsql-admin@xxxxxxxxxxxxxx
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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux