io.input.datetime
Requests a date & time.
Usage
- TypeScript
- JavaScript
- Python Experimental
const datetime = await io.input.datetime("Date & time");
const datetime = await io.input.datetime("Date & time");
datetime = await io.input.datetime("Date & time")
interval.com
Props
- TypeScript
- JavaScript
- Python Experimental
defaultValue
Optional
object
Default value for the input. Can be a Date object or an object with the following values:
disabled
Optional
boolean
Whether the input is disabled, preventing changes from the `defaultValue`.
helpText
Optional
string
Optional label providing additional context.
max
Optional
object
Latest possible datetime value for the input.
day
Required
number
The day of the month of the maximum datetime.
hour
Required
number
The hour of the maximum datetime, 1-12.
minute
Required
number
The minute of the maximum datetime.
month
Required
number
The calendar month of the maximum datetime, 1-12.
year
Required
number
The year of the maximum date.
min
Optional
object
Earliest possible datetime value for the input.
day
Required
number
The day of the month of the minimum datetime.
hour
Required
number
The hour of the minimum datetime, 1-12.
minute
Required
number
The minute of the minimum datetime.
month
Required
number
The calendar month of the minimum datetime, 1-12.
year
Required
number
The year of the minimum datetime.
Returns
object
day
number
The day of the month of the provided datetime.
hour
number
The hour in the day of the provided datetime, 0-23.
jsDate
Date
JavaScript Date object containing the datetime values.
minute
number
The minute of the provided datetime.
month
number
The calendar month of the provided datetime, 1-12.
year
number
The year of the provided datetime.
defaultValue
Optional
object
Default value for the input. Can be a Date object or an object with the following values:
disabled
Optional
boolean
Whether the input is disabled, preventing changes from the `defaultValue`.
helpText
Optional
string
Optional label providing additional context.
max
Optional
object
Latest possible datetime value for the input.
day
Required
number
The day of the month of the maximum datetime.
hour
Required
number
The hour of the maximum datetime, 1-12.
minute
Required
number
The minute of the maximum datetime.
month
Required
number
The calendar month of the maximum datetime, 1-12.
year
Required
number
The year of the maximum date.
min
Optional
object
Earliest possible datetime value for the input.
day
Required
number
The day of the month of the minimum datetime.
hour
Required
number
The hour of the minimum datetime, 1-12.
minute
Required
number
The minute of the minimum datetime.
month
Required
number
The calendar month of the minimum datetime, 1-12.
year
Required
number
The year of the minimum datetime.
Returns
object
day
number
The day of the month of the provided datetime.
hour
number
The hour in the day of the provided datetime, 0-23.
jsDate
Date
JavaScript Date object containing the datetime values.
minute
number
The minute of the provided datetime.
month
number
The calendar month of the provided datetime, 1-12.
year
number
The year of the provided datetime.
default_value
Optional
datetime
Default value for the input.
disabled
Optional
bool
Whether the input is disabled, preventing edits to the default value.
help_text
Optional
str
Secondary label for providing additional context.
max
Optional
datetime
Latest possible datetime value for the input.
min
Optional
datetime
Earliest possible datetime value for the input.
Returns
datetime
Was this section useful?