I am trying to get iso week for the date '2022/10/17' in SSIS datepart column expression. I tried the below expression but did not succeeded.
(DT_WSTR,2)DATEPART("isoww",(DT_DBTIMESTAMP)Date_NewFormat)
I also tried isowk, iso_week, ISO_WEEK but failed. Please help.
According to my test, we can use the following expression:
DATEPART("ww", (DT_DBTIMESTAMP) "2022-10-17")
Please refer to the following link and pictures.
DATEPART (SSIS Expression)
Depart Name for Week
Expression
Regards,
Lisa