date.getMonth()方法的替代

int m = Calendar.getInstance().getTime().getMonth();
System.out.println(m);
int n = DateUtils.getCurrentDate().getMonth();
System.out.println(n);
int k = Calendar.getInstance().get(Calendar.MONTH);
System.out.println(k);

你可能感兴趣的:(Date)