date.getMonth()方法的替代

luxika發表於2011-06-24
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);

相關文章