There are few classes which cause so many similar questions on Stack Overflow as java.util.Date. There are four causes for this:
- Date and time work is fundamentally quite complicated and full of corner cases. It’s manageable, but you do need to put some time into understanding it.
- The
java.util.Date
class is awful in many ways (details given below). - It’s poorly understood by developers in general.
- It’s been badly abused by library authors, adding further to the confusion.