Calculate days between two Dates in Java 8
I know there are lots of questions on SO about how to get Dates in Java, but I want an example using new Java 8 Date API. I also know about the JodaTime library, but I want a method without relying on external libraries. The function needs to be compliant with these restrictions: Prevent errors … Read more