SimpleDateFormat的12小时和24小时进制的问题

先贴个连接....大佬的

https://blog.csdn.net/yangshuanbao/article/details/6864054

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); //24小时
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); //12小时

猜你喜欢

转载自blog.csdn.net/YoungLee16/article/details/82789110