InputDateRange, InputMonth, InputMonthRange, InputDateTime, InputTimeInputDate
– input with a calendar.
Date formatting can be customized with TUI_DATE_FORMAT token.
See example with the usage of these tokens.
DI-tokens for input-configurations:
TUI_DATE_VALUE_TRANSFORMER
- custom format of control output ( TuiDay is default).
See example with built-in Date object as control's output.
Taiga UI usage experience
If you need to set some attributes or listen to events on native input
, you can put it inside with Textfield
directive as shown below
With native Date output
#
Control's output as TuiDay (default)
Stringified control value:
26.01.2022
Control's output as native Date
(see toNativeDate
directive)
Stringified control value:
Wed Jan 26 2022 00:00:00 GMT+0000 (Coordinated Universal Time)