io.experimental.datetime
Requests a date & time.
Usage
const datetime = await io.experimental.datetime("Date & time");
interval.com
Props
defaultValue | Optional object | Default value for the input. |
helpText | Optional string | Optional label providing additonal context. |
max | Optional object | Latest possible datetime value for the input. |
min | Optional object | Earliest possible datetime value for the input. |
Returns: Object
day | Required number | The day of the month of the provided datetime. |
hour | Required number | The hour in the day of the provided datetime, 0-23. |
jsDate | Required Date | JavaScript Date object containing the datetime values. |
minute | Required number | The minute of the provided datetime. |
month | Required number | The calendar month of the provided datetime, 1-12. |
year | Required number | The year of the provided datetime. |
Did this section clearly explain what you wanted to learn?