<p>How to get the number of years between two <code>java.util.Date</code>?</p>

<p><strong>Note:</strong> using only <code>java.util.Date</code></p>

How accurate do you need to be?  If approximate is good enough, then I'd do
```
```
long msDiff = date1.getTime() - date2.getTime();
int yearDiff = (int)(msDiff / 1000 / 60 / 60 / 24 / 365.25);
```
```