Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
varCutoffDate = "2006-01-01" ;
context.date=TalendDate.parseDate("yyyy-MM-dd","2006-01-01");
You need to parse the string to Date using the method:TalendDate.parseDate(String pattern, String dateString) provided by Talend.
SimpleDateFormat sdf = new SimpleDateFormat ( "yyyy-MM-dd" ) ;
context.varCutoffDate = sdf.parse("2006-01-01") ;