2014年1月20日

java计算当前月的第几周,及周的起止日期/月及月的起止日期

摘要: 1 public static void printWeeks() { 2 SimpleDateFormat format = new SimpleDateFormat("yyyy.MM.dd"); 3 Calendar calendar = Calendar.getInstance(); 4 calendar.set(Calendar.DATE, 1); 5 int month = calendar.get(Calendar.MONTH); 6 int count = 0; 7 while (c... 阅读全文

posted @ 2014-01-20 11:04 看天空的星星 阅读(3536) 评论(0) 推荐(0) 编辑

导航