//获取当前时间年后两位 月 日 其他方法见下面格式
System.err.println(String .format("%ty", new Date())); //获取年的后两位
System.err.println
日期中的String.format()格式,分别获取年月日
最新推荐文章于 2023-06-10 11:53:51 发布
//获取当前时间年后两位 月 日 其他方法见下面格式
System.err.println(String .format("%ty", new Date())); //获取年的后两位
System.err.println