java.util.Calendar cal1 = java.util.Calendar.getInstance();cal1.setTime(date1);
java.util.Calendar cal2 = java.util.Calendar.getInstance();cal2.setTime(date2);
java.util.Calendar date = (java.util.Calendar) cal1.clone();
long daysBetween = 0;
while (date.before(cal2)) {
date.add(java.util.Calendar.DAY_OF_MONTH, 1);
daysBetween++;
}
int awardIntVal = (int) (daysBetween/365.25);
awardVal = (double) (daysBetween/365.25);
String award = new Double(awardVal).toString();
if(award.indexOf(“.999”) > -1) {
awardVal = Double.parseDouble(award.substring(0,award.indexOf(‘.’))) + 1;
}
else
awardVal = awardIntVal;
How can i do this using tcl in cloverleaf.