I am creating a derived column in SSIS to pull last date of year for 2012. What would the expression look like?
LastDateofYear
attribute in date
data type
I am creating a derived column in SSIS to pull last date of year for 2012. What would the expression look like?
LastDateofYear
attribute in date
data type
Since always the last day is 31/12 then you can concatenate a string to the year part and convert it to DT_DATE
data type using a derived column:
(DT_DATE)"2012-12-31"
If the year is a variable:
(DT_DATE)((DT_WSTR,10)@[User::year] + "-12-31")