`

Java 日期

阅读更多
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_year))) {   
 dynaBean.set("showBase", "true");// 显示单位基本情况   
} 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/misswuyang/archive/2009/01/06/3719704.aspx
4
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics