InputDateTime

fun InputDateTime(state: InputDateTimeState, onFocusChanged: (Boolean) -> Unit = {}, onValueChanged: (TextFieldValue?) -> Unit, onNextClicked: () -> Unit? = null, onActionClicked: () -> Unit? = null, modifier: Modifier = Modifier)

DHIS2 Input Date Time Input field to enter date, time or date&time. It will format content based on given visual transformation. component uses Material 3 DatePicker and TimePicker input formats supported are mentioned in the date time input ui model documentation. DatePicker Input mode will always follow locale format.

Parameters

state

: an InputDateTimeState with all the parameters for the input

modifier

: optional modifier.


fun InputDateTime(uiModel: InputDateTimeModel, modifier: Modifier = Modifier)

Deprecated

This component is deprecated and will be removed in the next release. Use InputDateTime instead.

DHIS2 Input Date Time Input field to enter date, time or date&time. It will format content based on given visual transformation. component uses Material 3 DatePicker and TimePicker input formats supported are mentioned in the date time input ui model documentation. DatePicker Input mode will always follow locale format.

Parameters

uiModel

: an InputDateTimeModel with all the parameters for the input

modifier

: optional modifier.