private String convertToQuarter(String month){
  if (month.length() != 7)   return month;
  String mm=month.substring(5,7);
  int mon=Integer.parseInt(mm);
  return month.substring(0,5) + "Q" + ((mon / 3) + 1);
}

private String convertToQuarter ( String month ) { if ( month . length ( ) != 7 ) return month ; String mm = month . substring ( 5 , 7 ) ; int mon = Integer . parseInt ( mm ) ; return month . substring ( 0 , 5 ) + "Q" + ( ( mon / 3 ) + 1 ) ; }
convert date formatted as yyyy - mm to yyyy - qq
