最简单的方法,通过使用最新模式得到它-
h:mm a,其中
h-上午/下午的小时数(1-12)
m-小时
a-上午/下午标记
程式码片段:
DateFormat dateFormat = new SimpleDateFormat("hh:mm a");
最简单的方法,通过使用最新模式得到它-
h:mm a,其中
h-上午/下午的小时数(1-12)
m-小时
a-上午/下午标记
程式码片段:
DateFormat dateFormat = new SimpleDateFormat("hh:mm a");