这是我的代码。
Calendar calendar= Calendar.getInstance();
System.out.println("Calender: "+calendar);
System.out.println("Calender Date: "+calendar.DAY_OF_MONTH);
System.out.println("Date: "+new Date().getDate());
输出:
在红色框中显示日历DAY_OF_MONTH=14
,但calendar.DAY_OF_MONTH
显示5
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句