Given a java.util.Date object how do I go about finding what Quarter it\'s in?
Assuming Q1 = Jan Feb Mar, Q2 = Apr, May, Jun, etc.
For Me, I Used this method for string representation:
int quarter = (Calendar.getInstance().get(Calendar.MONTH) / 3); // 0 to 3 String[] mQuarterKey = {"qt1", "qt2", "qt3", "qt4"}; String strQuarter = mQuarterKey[quarter];