How to change file format using Talend?

 Requirement:  We have files as shown below format.  

file name YYYYMMDD.csv

file name DDMMYYYY.csv

abc20231017.csv abc20200101.csv abc09092023.csv in these files reject the file format like DDMMYYYY & need the output like this format YYYYMMDD.

We have design the flow using Talend .