Docs > Forms > RruDateTimeInput



Click “Open Sandbox” to see the example source code


Name Description Required
name Unique form element name Yes
label The form element label No
requiredAsterisk Display an asterisk to indicate the field is required No
mode The mode of the input, can be either ‘datetime’ or ‘date’. Default is ‘datetime’. No
calendarType gregorian or islamic-umalqura. Default is gregorian No
getDateConfig An optional function that customizes the supplied date (in the format yyyy-mm-dd) by returning an optional config object of Type RruDateTimeInputDateConfig. No
disabled Controls whether the input field is disabled or not No
onChange A callback function. This is useful if you need to watch the field value No


Name Description Required
disabled Is the date disabled. No
className Class name. No
style Custom style. No