public string returnDateString() { string monthString = CalendarType.enforceMonthFormat(month.ToString()); string yearString = CalendarType.enforceYearFormat(year.ToString()); string dayString = CalendarType.enforceDayFormat(monthString, day.ToString(), yearString); return(monthString + dayString + yearString); }
private void startY_Leave(object sender, EventArgs e) { startY.Text = CalendarType.enforceYearFormat(startY.Text); }
private void currY_Leave(object sender, EventArgs e) { currY.Text = CalendarType.enforceYearFormat(currY.Text); }
private void year_Leave(object sender, EventArgs e) { year.Text = CalendarType.enforceYearFormat(year.Text); }