Java 日期

Posted on 2009-01-06 11:02  Ethan Woo  阅读(109)  评论(0)    收藏  举报
  Calendar now = Calendar.getInstance();  int curtYear = now.get(Calendar.YEAR);  now.set(curtYear, 0, 1);  Date first_day_month1_year = now.getTime();// 每年1月第一天  now.set(curtYear, 1, 1);  Date first_day_month2_year = now.getTime();// 每年2月第一天  if (today.before(first_day_month2_year)    && (today.after(first_day_month1_year) || DateUtils.isSameDay(today, first_day_month1_y

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3

csdn博客bottom