Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
routines.TalendDate.diffDate(date1, date2, "mm")>15
public static boolean dateDiffWithinBounds(String unit, Date date1, Date date2, int bound){
boolean returnVal = routines.TalendDate.diffDate(date1,date2,unit)<bound;
System.out.println("Date1 = " + TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",date1) + " and Date2 = " +
TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",date2) + ". Result = "+returnVal);
return returnVal;
}