code: @SuppressWarnings("deprecation")
      public static YearMonth fromDateFields(Date date) {
          if (date == null) {
              throw new IllegalArgumentException("The date must not be null");
          }
          return new YearMonth(date.getYear() + 1900, date.getMonth() + 1);
      }
docs: Constructs a YearMonth from a <code>java.util.Date</code>
  using exactly the same field values avoiding any time zone effects.
  <p>
  Each field is queried from the Date and assigned to the YearMonth.
  <p>
  This factory method always creates a YearMonth with ISO chronology.
  
  @param date  the Date to extract fields from
  @return the created YearMonth, never null
  @throws IllegalArgumentException if the calendar is null
  @throws IllegalArgumentException if the year or month is invalid for the ISO chronology