Java 8 has completly different time-api and makes handling dates a lot easier. Here's an article
With Java Versions 5-7 (everything below should not be used IMHO) you should use Calendar (as Petr suggested)
If you are allowed to use third-party APIs, you should definitly take a look at JodaTime