public String toString() {
		switch (flags) {
		case FROM:
		return "FROM " + super.toString();
		
		case TO:
			return "TO " + super.toString();
			
		case FROM_TO:
			return "FROM " + super.toString() + " TO " + date2.toString();
			
		default:
			return "DatePeriod[UNKNOWN " + super.toString() + "]";
		}
	}