Date day=new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM");
String yearMonth = dateFormat.format(day);
java获得年月
最新推荐文章于 2024-09-10 16:56:06 发布
Date day=new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM");
String yearMonth = dateFormat.format(day);