I used
SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy, HH:mm"); String time = formatter.format(new Date());
to get t
If you want the current time in millis just use System.currentTimeMillis()
System.currentTimeMillis()