public class Date {
public static void main(String[] args){
Calendar c = Calendar.getInstance();
System.out.println(c.getTime().getDay());
int month=c.get(c.WEEK_OF_MONTH);
int week = c.get(c.</
计算当前时间,几月,第几周,当前月的第几周,当前周的第几天
最新推荐文章于 2024-07-02 01:10:39 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)