Possible Duplicate:
How to calculate time difference in java?
Actually I want to subtract two dates in Java. I tried a lot but can't succeed. So anyone please help me.
Date dtStartDate=pCycMan.getStartDate();
Date dtEndDate=pCycMan.getEndDate();
How can I subtract these two Dates?