Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I am trying to do the incremental load of XML files. I do have date column on yyyy-MM-dd HH:mm:ss which is row2.updatedtimestamp. On first row I am trying to convert my string type data to date format. On the second row I am trying to get the current time.
On the third row I am doing the date differennce with the my date column (row2.updatedtimestamp) with flag.
But the problem is that I am keep getting error as;
Type mismatch: cannot convert from Date to String.
Could you please let me know what is wrong? I also have shared the screenshot of job
Expression | Type | Variable |
TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row2.updatedtimestamp ) | Date | format_date |
TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",TalendDate.getDate("yyyy-MM-dd HH:mm:ss")) | Date | Current_date |
TalendDate.diffDate(Var.Current_date,Var.format_date,"dd") == 126 ?true:false | Boolean | Out_Flag |