I have one field in a Firebird DB containing dates like this
27.09.2014
untill no I compared it to the current date with
substring(100+extract(day from current_date) from 2 for 2)
|| '.' ||
substring(100+extract(month from current_date) from 2 for 2)
|| '.' ||
extract(year from current_date)
= date_field_to_compare
But now i need to keep out the greater dates and this turns out to be impossible in this case, since its not handling native dates but numbers.
So I actually need to do the opposite, to convert the
27.09.2014
into A SQL date.
Like
SELECT date_field_to_compare FROM db WHERE
date_field_to_compare < CURRENT_DATE
But how can I Convert this DB Date field into a SQL understandable date?