But what happens when the Date comes always in different format or the target date format depends on the Message Payload. Here is some Solution for this.
To handle such a Scenario we have to use a CustomerFunction. In this example we use a source structure with 3 fields.
The CustomerFunction has 3 Arguments which we use in the function to convert the Date Value.
We have to import as well the java.text.* package for this function.
We use the SimpleDateFormat Class for the Transformation.
With these basics it is possible to build complex Date Conversion scenarios.