获取指定月份的天数

        Calendar cal = Calendar.getInstance();
           cal.set(2017,9,0);
           int i = cal.get(Calendar.DAY_OF_MONTH);

猜你喜欢

转载自blog.csdn.net/bingguang1993/article/details/80749132