Hi,
You need to import below for this UDF( Execution Type: All Values of queue)
import java.text.SimpleDateFormat;
import java.util.Date;
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
Date Stt = dateFormat.parse("00/00/0000");
for(int i =0;i<var1.length;i++)
{
Date TaskDate = dateFormat.parse(var1[i]);
if(TaskDate.after(Stt))
Stt = TaskDate;
}
result.addValue(Stt);
}
}