标签:
Calendar 类分析:
1 Calendar calendar = Calendar.getInstance();
2 System.out.println(calendar.getTime());
3 SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MM-dd-yyyy");
4 Date date = calendar.getTime();
5 System.out.println(simpleDateFormat.format(date));
6 System.out.println(calendar.get(Calendar.YEAR));
标签:
原文地址:http://www.cnblogs.com/mada0/p/4687241.html