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)
Try Talend Cloud free for 30 days.
Introduction to Talend Open Studio for Data Integration.
Practical steps to developing your data integration strategy.
Create systems and workflow to manage clean data ingestion and data transformation.