public static String calYM(String YM,int year){
String result=null;
try{
Calendar calender= GregorianCalendar.getInstance();
calender.setTime(new SimpleDateFormat("yyyyMM").parse(YM));
DateFormat df=new SimpleDateFormat("yyyyMM");
result=df.format(calender.getTime());
}catch (Exception e){
}
return result;
}
11-15
6164
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)
08-11
1574
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)
09-01
2392
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)