I have a timestamp in millis and want to format it indicating day, month, year and the hour with minutes precission.
I know I can specify the format like this:
You can use something like this:
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yy HH:mm", Locale.getDefault()); String formatted = sdf .format(900000); System.out.println(simpleDateFormat.parse(formatted));