posted 18 years ago
matDt = df.parse(maturityDate);
valDt = df.parse(valueDate);
long millis = matDt.getTime()-valDt.getTime();
period=millis/(24*60*60*1000);
i dont know but this is only givin me the difference between the days
w/o taking into consideration the months etc.