Stop using the Date class.
Wayan Saryada is right. Use LocalDate or similar; see the
Java™ Tutorials. Since Java8 came out over 3½ years ago, you most probably
can use LocalDate.
I think you have managed to find the
wrong forum and this discussion would fit better in a more general forum, so I shall move you.