java calendar 与 date 转换

问题描述:

java calendar 与 date 转换

Calendar和Date的转化(1) Calendar转化为DateCalendar cal=Calendar.getInstance();Date date=cal.getTime();(2) Date转化为CalendarDate date=new Date();Calendar cal=Calendar.getInstance();cal.setTime(date);...