java 获取今天是几号 Integer dayOfMonth = Calendar.getInstance().get(Calendar.DAY_OF_MONTH); System.out.println("今天是"+dayOfMonth+"号");