InputDateTime allows to input date and time
Date formatting can be customized with TUI_DATE_FORMAT token.
See example with the usage of these tokens.
TUI_DATE_TIME_VALUE_TRANSFORMER[TuiDay, TuiTime | null] | null is default). See example with string as control's output.
input , you can put it inside with Textfield directive as shown below Stringified control value:
19.01.2022, 12:33
timeMode ending with AA is 12-hour time format with meridiem part Control value:
[
"2020-09-20",
{
"hours": 15,
"minutes": 30,
"seconds": 0,
"ms": 0
}
]Form value:
[
"2017-03-15",
null
] If a field is optional, but unfinished field should be marked as invalid, use tuiUnfinishedValidator directive
Form value:
[
"2017-03-15",
null
]