Date date = new Date();
Calendar cal = Calendar.getInstance();
cal.setTime(date);
int year = cal.get(Calendar.YEAR);
int month = cal.get(Calendar.MONTH); // 0-11
int day = cal.get(Calendar.DATE);
posted on 2006-05-10 16:11
happytian 阅读(152)
评论(0) 编辑 收藏