Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
Using the build-in function diffDate(Date date1, Date date2), for example:
tMysqlInput--row1--tMap--tLogRow
Assuming the data type of Age column is String, set the expression field of Age column on outuput table as below:
row1.age==null? (TalendDate.diffDate(TalendDate.getCurrentDate(), row1.DateOfBirth,"yyyy")).toString():row1.age
Best regards
Shong