My app needs to display several textview containing a specific hour.
Let's suppose I have those ones under the 24hours format. Is it possible to keep this format or to convert it to the 12hours format + am or pm according to the Locale of the phone?
I should have put everything in the 24 hours format but it's not user friendly at all. It is also important to note that for some countries like Japan, noon is 12:00 a.m. instead of 12:00 p.m. . Thats why it would be too complicated to manage that manually.
this:
java.text.DateFormat dateFormat=android.text.format.DateFormat.getDateFormat(getContext());
String s = dateFormat.format(date);
is saddly not working. Thanks in advance.