Code example for GregorianCalendar

Methods: clone

0
			return null; 
		} 
	} 
 
	public GregorianCalendar getExpirationDate() {
		return (GregorianCalendar) expirationDate.clone();
	} 
 
	public String getExpirationDateString() {
		return expirationDate.get(Calendar.YEAR) + "-"
				+ expirationMonth() + "-" 
				+ expirationDate.get(Calendar.DAY_OF_MONTH);
	} 
 
	public boolean isEaten() { 
		return eaten;
	} 
 
	public void setEaten(boolean eaten) {
		this.eaten = eaten;
	}