I'm trying to insert data
in my Database, my input is a string, representing a date in this format: yyyyMMdd ("20140525")
I try this in talend :
TalendDate.parseDate("yyyyMMdd",row1.date_pre_contrat)
but at runtime it does not work...
I've also tried
TalendDate.parseDate("yyyy-MM-dd",row1.date_pre_contrat)
but the result is the same.
Does someone have a any clue on what the problem is?
Solution found:
it was because i didn't tell Talend not to analyse the first line which contains the title.
Sorry for this