0

i want to calculate age but this result = 0. this is my code

Date tgl = rs.getDate("Tanggal_Lahir");//take from database
            Date kini = new Date();
            int umur = kini.getYear()-tgl.getYear();//.getyear have strikethrough

someone can give solution.thx

Henz D'Wraith
  • 93
  • 2
  • 10

0 Answers0