Code example for Calendar

Methods: add, get

0
		mFirstCal.set(2007, 10, 1);  
	} 
 
	public void addException(Calendar in, int increment) {
		// exception 
		int yr = in.get(Calendar.YEAR);
		int mon = in.get(Calendar.MONTH);
		int dat = in.get(Calendar.DAY_OF_MONTH);
		if(yr == 2008 && mon == 2 && dat == 05) {
			in.add(Calendar.DAY_OF_MONTH, increment);			
		} 
	} 
}