Comment afficher DateField au format AM / PM dans BlackBerry?
-
22-07-2019 - |
Question
Je ne sais pas comment afficher l'heure au format AM / PM dans un BlackBerry à l'aide de BlackBerry Datefield.Pls me donne une idée de la procédure à suivre.
La solution
Utilisez SimpleDateFormat <> / a>:
SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss aa");
long date = System.currentTimeMillis();
DateField dateField = new DateField("time:", date, timeFormat);
add(dateField);
texte de remplacement http://img171.imageshack.us/img171/7642/timeformat .jpg
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow