io.input.date
Requests a date.
Usage
- TypeScript
- JavaScript
- Python
const date = await io.input.date("Date");
const date = await io.input.date("Date");
date = await io.input.date("Date")
interval.com
Props
- TypeScript
- JavaScript
- Python
defaultValue
Optional
Date | object
Default value for the input.
Date | {
year: number;
month: number; // 1-12
day: number;
}
disabled
Optional
boolean
Whether the input is disabled, preventing changes from the `defaultValue`.
helpText
Optional
string
Optional label providing additional context. Supports inline markdown elements like bold, italics, and links.
max
Optional
Date | object
Latest possible date value for the input.
Date | {
year: number;
month: number; // 1-12
day: number;
}
min
Optional
Date | object
Earliest possible date value for the input.
Date | {
year: number;
month: number; // 1-12
day: number;
}
Returns
object
day
number
The day of the month of the provided date.
jsDate
Date
JavaScript Date object containing the date value.
month
number
The calendar month of the provided date, 1-12.
year
number
The year of the provided date.
defaultValue
Optional
Date | object
Default value for the input.
Date | {
year: number;
month: number; // 1-12
day: number;
}
disabled
Optional
boolean
Whether the input is disabled, preventing changes from the `defaultValue`.
helpText
Optional
string
Optional label providing additional context. Supports inline markdown elements like bold, italics, and links.
max
Optional
Date | object
Latest possible date value for the input.
Date | {
year: number;
month: number; // 1-12
day: number;
}
min
Optional
Date | object
Earliest possible date value for the input.
Date | {
year: number;
month: number; // 1-12
day: number;
}
Returns
object
day
number
The day of the month of the provided date.
jsDate
Date
JavaScript Date object containing the date value.
month
number
The calendar month of the provided date, 1-12.
year
number
The year of the provided date.
default_value
Optional
date
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
date
Latest possible date value for the input.
min
Optional
date
Earliest possible date value for the input.
Returns
date
Was this section useful?