select * from tmonedas where fhasta=to_timestamp('31122999','ddmmyyyy')