I am tryng to build a Date fromat conversion in Mule using dataweave. The problem is: I am receiving the Date information as: 'Thy Feb 17 00:00:00 BRT 2022'. I need to transform this to the format YYYYMMDD. I try to create my specific function but the problem start when Mule tries to parse the received date as a date.
'Thu Feb 17 00:00:00 BRT 2022' could not be parsed at index 0.
Can you guys help me with that transformation?