 		@__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("")


		return


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

		@markDay()
		@


	getDateTimeDrawer: (mom) ->

		console.debug "getDateTimeDrawer", mom, @__input_format

		am_pm = true # @__input_formats[0].clock_am_pm

		data =
			month: mom.month()
			year: mom.year()
			date: mom.date()
			hour: null
			minute: null
			second: null
			am_pm: null

		if @__input_format.clock
			data.hour = mom.hour()
			data.minute = mom.minute()
			data.second = mom.second()

			if am_pm
				data.am_pm = Math.floor(data.hour / 12)*12
				data.hour = data.hour%12

		pad0 = (n) ->
			if n < 10
