Calendar cal = Calendar.getInstance();int dayOfMonth = cal.get(Calendar.DAY_OF_MONTH);String dayOfMonthStr = String.valueOf(dayOfMonth);
您还可以获取DAY_OF_WEEK,DAY_OF_YEAR,DAY_OF_WEEK_IN_MONTH等。
欢迎分享,转载请注明来源:内存溢出
Calendar cal = Calendar.getInstance();int dayOfMonth = cal.get(Calendar.DAY_OF_MONTH);String dayOfMonthStr = String.valueOf(dayOfMonth);
您还可以获取DAY_OF_WEEK,DAY_OF_YEAR,DAY_OF_WEEK_IN_MONTH等。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)