Compare year and make the count registered in the bank

0

I wanted to count clients registered in my bank, born in the year 1930 to the current year (2017). In my bank I have registered as date , the date of birth ex: 2000-10-01

So I wanted to make a for comparing the year 1930 with date of the bank and I do not know how to do it.

For what I searched for would be something like this:

for (Date dt = dt1; dt.compareTo(dt2) <= 0;) {

//aqui fazer a logica de contagem...

}

Would you have any suggestions?

    
asked by anonymous 23.03.2017 / 11:48

0 answers