Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?
摘要: 1.计算某一月份的最大天数Calendar time=Calendar.getInstance();time.clear();time.set(Calendar.YEAR,year); //year 为 int time.set(Calendar.MONTH,i-1);//注意,Calendar对象默认一月为0 int day=time.getActualMaximum(Calendar.DAY_OF_MONTH);//本月份的天数注:在使用set方法之前,必须先clear一下,否则很多信息会继承自系统当前时间2.Calendar和Date的转化(1) Calendar转化为DateCalen 阅读全文
posted @ 2008-12-29 10:59 Angelo Lee 阅读(166) 评论(0) 推荐(0) 编辑