I want to select a varchar field as a date field
For example a field has this value \"30.12.2011 21:15:03\"
and when i select this
select DAT
Here is the answere to my question:
CAST ( SUBSTRING (field FROM 1 FOR 2) ||'.'|| SUBSTRING (field FROM 4 FOR 2) ||'.'|| SUBSTRING (field FFROM 7 FOR 4) AS DATE)
This took me 5 hours to find this out, maybe there should be a "-" instead of "." but it works.