CalcolaDecimoUndicesimo
This commit is contained in:
parent
0d62d39cd0
commit
041f9cda23
@ -259,7 +259,17 @@ public class GestisciCodiceFiscale {
|
||||
}
|
||||
|
||||
static String CalcolaDecimoUndicesimo(Date dataNascita, String sesso) {
|
||||
|
||||
final String PATTERN = "dd";
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(PATTERN);
|
||||
int giorno = Integer.parseInt(sdf.format(dataNascita));
|
||||
String ritorno;
|
||||
if (sesso.equals("f")) {
|
||||
ritorno = Integer.toString(giorno + 40);
|
||||
}
|
||||
else {
|
||||
ritorno = Integer.toString(giorno);
|
||||
}
|
||||
return ritorno;
|
||||
}
|
||||
|
||||
static String CalcolaFrom12To15(String luogoNascita) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user