 		@__dateTimeTmpl.replace(new Label(text: title), "header_center")
 		@
 
-	initFormat: (idx_or_format) ->
-		if isInteger(idx_or_format)
-			@__input_format = @__input_formats[idx_or_format]
-		else
-			@__input_format = idx_or_format
+	initFormat: (input_format) ->
 
 		moment.locale(@__locale_format.moment_locale or @_locale)
 
 		switch @_display_type
 			when "short"
-				@__input_format.__display = @__input_format.display_short
+				input_format.__display = input_format.display_short
 			else
-				@__input_format.__display = @__input_format.display
-
-		@_invalidHint = text: @__input_format.invalid
+				input_format.__display = input_format.display
+
+		@_invalidHint = text: input_format.invalid
 
 		for k, v of @__regexpMatcher
 			v.match_str = k
 
-		input = @__input_format.input
+		input = input_format.input
 		rstr = "("+Object.keys(@__regexpMatcher).join("|")+")"
 		re = new RegExp(rstr, "g")
 		s = input.split("")


		if @__input_formats[0].clock

			hour_sel = new Select(
				name: "hour"
				data: data
				group: "time"
				onDataChanged: =>
					if am_pm
						@updateCalendar(mom.hour(data.hour+data.am_pm))
					else
						@updateCalendar(mom.hour(data.hour))
				options: =>
					opts = []
					if am_pm
						for hour in [1..12]
							opts.push


		return

	setMomentFromInput: ->
		inp = @__input0.value.trim()
		if inp.length > 0
