int month=ca.get(Calendar.MONTH)+1;

System.out.println("当前月份是:"+month);

int date=ca.get(Calendar.DATE);

System.out.println("当前日期是:"+date);

int hour=ca.get(Calendar.HOUR_OF_DAY);

System.out.println("当前小时是:"+hour);

int minu=ca.get(Calendar.MINUTE);

System.out.println("当前是多少分:"+minu);

int sec=ca.get(Calendar.SECOND);

System.out.println("当前是多少秒:"+sec);

int week=ca.get(Calendar.DAY_OF_WEEK);

System.out.println("星期几"+week);

int week2=ca.get(Calendar.DAY_OF_MONTH);

System.out.println("这一天是当于的几天"+week2);

int week3=ca.get(Calendar.DAY_OF_YEAR);

System.out.println("这一天是这年的第几天:"+week3);