Pre-Java-8 code struggled with java.util.Date (months starting at 0, years offset by 1900, mutable setters) and thread-unsafe SimpleDateFormat. java.time fixes all of them with clean, immutable, 1-based month classes.
More lessons in Complete Core Java