code: public static Integer getQuarter(Date date) {
  
          if (date == null)
              return null;
  
          int season = 1;
          Calendar c = Calendar.getInstance();
          c.setTime(date);
          int month = c.get(Calendar.MONTH);
          switch (month) {
              case Calendar.APRIL:
              case Calendar.MAY:
              case Calendar.JUNE:
                  season = 2;
                  break;
              case Calendar.JULY:
              case Calendar.AUGUST:
              case Calendar.SEPTEMBER:
                  season = 3;
                  break;
              case Calendar.OCTOBER:
              case Calendar.NOVEMBER:
              case Calendar.DECEMBER:
                  season = 4;
                  break;
          }
          return season;
      }
docs: 获取当前是几季度
  <p>
  1：第一季度
  2：第二季度
  3：第三季度
  4：第四季度
  </p>
  @param date 日期
  @return 返回当前季度数值，如果date is null,则返回null