Question : Convert Julian date to standard date through Derived Coulmn in SSIS

How can i convert julian date into standard date using Derived Column in SSIS.
Julian date is like 2009102 and i want to convert this date to 12/03/2009 using Derived column in SSIS.

Answer : Convert Julian date to standard date through Derived Coulmn in SSIS

1:
2:
3:
4:
5:
Y2K onwards:
DATEADD("Day",(DT_I4)(SUBSTRING(Julian,4,3)) - 1,(DATEADD("Year",(DT_I4)(SUBSTRING(Julian,1,3)),(DT_DBDATE)"1900-01-01")))

Before 2000, may be irrelevant for you:
DATEADD("Day",(DT_I4)(SUBSTRING(Julian,4,3)) - 1,(DATEADD("Year",(DT_I4)((LEN(Julian) == 5) ? SUBSTRING(Julian,1,2) : SUBSTRING(Julian,1,3)),(DT_DBDATE)"1900-01-01")))
Random Solutions  
 
programming4us programming4us