Filter on a date field with tmap

One Star

Filter on a date field with tmap

Hi,
I have a simple question can I make a filter on a date field in tmap, using an expression filter...
IN JAVA please, and my date format is dd-MM-yyyy like the pic:
date_fin > "01-09-2008"
Employee

Re: Filter on a date field with tmap

yes !
date_fin > TalendDate.parseDate("dd-MM-yyyy","01-09-2008")
there are some usefull function in talend
One Star

Re: Filter on a date field with tmap

euhhh I tried during one our it doesn't work !!!
this is my error :
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The operator > is undefined for the argument type(s) java.util.Date, java.util.Date
at
Employee

Re: Filter on a date field with tmap

sorry :
it's better :
date_fin.after( TalendDate.parseDate("dd-MM-yyyy","01-09-2008"))
One Star

Re: Filter on a date field with tmap

WOouuuaaaa,
THANKS it's working...