Function to test for Valid Date

Started by Alexover 20 years ago2 messagesgeneral
Jump to latest
#1Alex
alex@meerkatsoft.com

Hi,
is there a way to use postgres to check if a date provided is valid and
would return true or false.

Thanks
Alex

#2Andreas Kretschmer
andreas_kretschmer@despammed.com
In reply to: Alex (#1)
Re: Function to test for Valid Date

Alex <alex@meerkatsoft.com> schrieb:

Hi,
is there a way to use postgres to check if a date provided is valid and
would return true or false.

http://www.postgresql.org/docs/8.0/interactive/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT

There is a user comment with a example.

Regards, Andreas
--
Diese Message wurde erstellt mit freundlicher Unterst�tzung eines freilau-
fenden Pinguins aus artgerechter Freilandhaltung. Er ist garantiert frei
von Micro$oft'schen Viren. (#97922 http://counter.li.org) GPG 7F4584DA
Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082�, E 13.56889� ;-)