I want to convert my column of transdate into YYYYMMDD format. In sql server I use this query
SELECT FORMAT([transdate],'yyyyMMdd')
It is running perfectly but I want to do this step using the derived column in SSIS please help. The data type is DT_DBDATE.
I used the following query but it is not working.
(DT_DBDATE)((YEAR(transdate) * 10000) + (MONTH(transdate) * 100) + DAY(transdate))
The reason of converting date into string format is basically i created a date table and i extracted this date from trans_date. Now i have to make dateid from that date That's why I converted it into int for further work especially for denormalization step.