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