Hi @Farhan Jamil ,
I used two Derived Column to convert 25 june 21 to 2021-06-25.
First is to replace 25 june 21 to 25 06 2021.
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(DATE,"Jan","01"),"Feb","02"),"Mar","03"),"Apr","04"),"May","05"),"June","06"),"July","07"),"Aug","08"),"Sep","09"),"Oct","10"),"Nov","11"),"Dec","12")
And then convert to 2021-06-25 with below expression.
(TRIM(DATE) == "") ? NULL(DT_WSTR,50) : (DT_WSTR,50)("20" + SUBSTRING(DATE,7,4) + "-" + SUBSTRING(DATE,4,2) + "-" + SUBSTRING(DATE,1,2))
The result is like shown:
Hope it could give you some ideas.
Regards,
Zoe
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hot issues October