How to remove the SECONDS field from a DateFormat
android, date-format, java, localization
Solution
DateFormat.getTimeInstance(DateFormat.SHORT) works perfectly fine here: from 20:00:00 to 20:00 and from 8:00:00 PM to 8:00 PM.
Problem
I want to print a time without seconds in the default format for the locale. So I get the formatter with `getTimeInstance()` or `getTimeInstance(int style)`. But even when I use a `SHORT` style it will contain the seconds part of the time as well. Is there any way (apart from creating my own format, which then would not be the locale default and manually maintained) I can grab the default and split off the seconds ? Thanks Roman