How to find the difference between two dates in java
Answers
Answered by
0
Explanation:
There are times when we need to calculate the difference between two dates in Java.
Below is a simple Java Program which uses SimpleDateFormat and DecimalFormat Java APIs to perform this action.
getTime() returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.
hope its helpful mark me brainliest
Attachments:
Similar questions