 					@__input_format = @initFormat(@__default_format)
 				mom.locale(moment.locale())
 
+				if mom.year() > @_max_year # Year must not be greater than max year.
+					return moment.invalid()
+
 				# console.debug "parsing ok", mom, f, moment.locale()
 				return mom
 

		return CUI.DateTime.formatMomentWithBc(mom, @__input_format.input)

	__checkInput: (value) ->
		if not CUI.util.isEmpty(value?.trim())
			mom = @parse(value)
			if not mom.isValid()
				return false
		else
			@__input_format = @initFormat(@__default_format)
		return true

					buttons: [
						icon: "left"
						group: "year"
						onClick: =>
							if data.year - 1 < @_min_year
								return

							mom.subtract(1, "years")
							@drawDate(mom)
					,
