/**
* 获取指定日期是星期几<br>
*
* @param date
* @return 指定日期是星期几
*/
public static String getWeekOfDate(Date date) {
String[] weekDays = { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
Calendar cal = Calendar.getInstance();
cal.setTime(date);
int w = cal.get(Calendar.DAY_OF_WEEK) - 1;
if (w < 0)
w = 0;
return weekDays[w];
}

  

最新文章

  1. An entity object cannot be referenced by multiple instances of IEntityChangeTracker.
  2. 42. Trapping Rain Water
  3. Java集合类之ArrayList
  4. 未能加载文件或程序集&quot;Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad
  5. Spring、实例化Bean的三种方法
  6. traceroute工作原理
  7. Configure Always On Availability Group for SQL Server on RHEL——Red Hat Enterprise Linux上配置SQL Server Always On Availability Group
  8. Findbug在项目中的运用--提高代码质量
  9. mysql监控执行的sql语句
  10. poj2054 Color a Tree
  11. 爬虫3 requests基础之 乱码编码问题
  12. 2018年值得关注的10大JavaScript动画库
  13. hadoop2.7.7 测试安装 centos7
  14. fork、vfork、clone
  15. 托管博客到coding或者github
  16. SQL Server 2014内存优化表的使用场景(转载)
  17. SCRUM 12.03
  18. DNS解析原理和流程
  19. Unix下cp、tar、sudo命令的使用
  20. PHP session用redis存储

热门文章

  1. Java开发最实用最好用的11个技术网站
  2. python12对象初
  3. lsof之列出已打开的文件
  4. 日常Java 2021/11/6
  5. Java——数组的定义与使用
  6. 集合类——Collection、List、Set接口
  7. centos7 自动同步时间
  8. Output of C++ Program | Set 15
  9. android Paint 详解
  10. Simulating final class in C++