得到当前日期是星期几
2015-10-12 15:50
246 查看
/** * 日期工具类。 * * @author Geek_Soledad (66704238@51uc.com) */ public class DateUtil { /** * 得到当前日期是星期几。 * * @return 当为周日时,返回0,当为周一至周六时,则返回对应的1-6。 */ public static final int getCurrentDayOfWeek() { return Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1; } }
相关文章推荐
- 如何利用jQuery post传递含特殊字符的数据
- forward 和redirect的区别
- android 设置手机状态栏的背景颜色
- Web前端技术
- C# UDP编程(通过类UdpClient实现收发)
- JS/jQuery常用代码片段
- 当电脑虚拟机上不了网时的故障排除方法
- Div里面载入另一个页面的实现(取代框架)(AJax)
- Storm在推荐系统中的应用
- 详解Java GC的工作原理+Minor GC、FullGC
- Cursor工具类,用于支持根据列名取得对应的值
- 我的沉思---生产,消费以及其他
- 常用MySQL操作
- IOS5 ARC unsafe_unretained等说明
- Ubuntu中apt-get出现E:Encountered a section with no Package: header……的解决方案
- [Leetcode]Subsets
- 关于UITableView的section最后一个分割线的优化
- 黑马程序员——Java基础--------IO流(一)
- EditPlus快捷键
- solr4.7的入门与相关配置