如何在黑莓AM / PM格式显示的DateField?
-
22-07-2019 - |
题
我不知道如何来显示AM / PM格式的时间在黑莓使用BlackBerry datefield.Pls给我一个想法如何做到这一点。
解决方案
SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss aa");
long date = System.currentTimeMillis();
DateField dateField = new DateField("time:", date, timeFormat);
add(dateField);
不隶属于 StackOverflow