SimpleDateFormat 格式化显示上下午的写法 new SimpleDateFormat("yyyy-MM-dd a h:mm:ss").format(new Date()); a : 就是代表“上下午”的意思