I have a Data which has a column Transaction date which is in string how can I change it to Date type and in the below output format.
Input format --MM/dd/yyyy hh:mm
1/2/2009 6:17 AM
1/2/2009 4:53 AM
Output:format -- dd-MM-yyyy HH:mm
2-01-2009 6:17 AM
2-01-2009 4:53 AM
Solved! Go to Solution.
Here is the expression to parse the string which you have mentioned.
TalendDate.parseDate("dd/MM/yyyy hh:mm aa",row1.Transaction_Date)
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Accelerate your data lake projects with an agile approach
Create systems and workflow to manage clean data ingestion and data transformation.
Introduction to Talend Open Studio for Data Integration.