int newValue = newValue(fieldName, text.getSelectionText(), calendar.getActualMaximum(fieldName));
int newValue = unformattedIntValue(fieldName, text.getSelectionText(), characterCount == 0, calendar.getActualMaximum(fieldName));
void commitCurrentField() {	if (characterCount > 0) {		characterCount = 0;		int fieldName = fieldNames[currentField];		int newValue = newValue(fieldName, text.getSelectionText(), calendar.getActualMaximum(fieldName));		if (newValue != -1) setTextField(fieldName, newValue, true, true);	}}