121122123124125126127128129130131
useDate = true; cal.clear(); cal.setTimeInMillis(now); /// perform op on 'to calendar' for (int q=0; q<addSet.fieldCount(); q++) { if (addSet.isSet(q)) { cal.add(q,addSet.get(q)); } }