Getting Date from Datetime DATA
TalendDate.formatDate("dd-MM-yyyy", row1.myDate)
Getting Time from Datetime DATA
TalendDate.formatDate("HH:mi:ss", row1.myDate)
For Testing in Talend:
TalendDate.formatDate("dd-MM-yyyy", TalendDate.parseDate("dd-MM-yyyy HH:mi:ss",row1.myString))
TalendDate.formatDate("dd-MM-yyyy", row1.myDate)
Getting Time from Datetime DATA
TalendDate.formatDate("HH:mi:ss", row1.myDate)
For Testing in Talend:
TalendDate.formatDate("dd-MM-yyyy", TalendDate.parseDate("dd-MM-yyyy HH:mi:ss",row1.myString))