Added Java class with dates management methods