how to get today date in YYYYMMDD in firebird, I had a look on following but could not figured how to write this.
This is a fully version (in Integer)
select Extract(year FROM cast('NOW' as date))*10000 +
Extract(month FROM cast('NOW' as date))*100 +
Extract(day FROM cast('NOW' as date)) from rdb$database
This is a fully version (in VARCHAR)
select CAST(Extract(year FROM cast('NOW' as date))*10000 +
Extract(month FROM cast('NOW' as date))*100 +
Extract(day FROM cast('NOW' as date)) AS VARCHAR(8)) from rdb$database