java 计算当前日期所在的星期一到星期日
public void mondayToSunday() { Date now = new Date(); Date time = new Date(now.getYear(), now.getMonth(), now.getDate()); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); // 设置时间格式 C
原创
2014-02-25 10:44:27 ·
4753 阅读 ·
1 评论