codice: new SimpleDateFormat("HH").format(new Date(System.currentTimeMillis())); P.S.: restituisce String
new SimpleDateFormat("HH").format(new Date(System.currentTimeMillis()));
Regole del Forum