Re: Compare two string dates using an IF statement?
Posted by Daniel Tryba on 05/25/05 02:09
bissatch@yahoo.co.uk wrote:
> How do I compare two date stored within a database with datatype
> 'date'?
>
> The dates are stored within a PostgreSQL database table in the format
> "Y-m-d".
If you get this as string from the db you just can simply use strcmp():
"2005-05-25" < "2005-05-26"