Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formsmd/formsmd/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Forms.md provides three methods for collecting date and time information:dateInput for dates only, timeInput for times only, and datetimeInput for combined date and time values.
dateInput
Collect date values inYYYY-MM-DD format.
Method Signature
Parameters
The unique identifier for this input field.
The main question or label displayed to the user.
Placeholder text for the input.
Minimum allowed date value in
YYYY-MM-DD format.Maximum allowed date value in
YYYY-MM-DD format.Sets the stepping interval (in days).
Pre-selected date value in
YYYY-MM-DD format.Examples
timeInput
Collect time values inHH:mm 24-hour format.
Method Signature
Parameters
The unique identifier for this input field.
The main question or label displayed to the user.
Placeholder text for the input.
Minimum allowed time value in
HH:mm format.Maximum allowed time value in
HH:mm format.Sets the stepping interval in seconds. Common values:
"900"- 15 minute intervals"1800"- 30 minute intervals"3600"- 1 hour intervals
Pre-selected time value in
HH:mm format.Examples
datetimeInput
Collect combined date and time values inYYYY-MM-DDTHH:mm format.
Method Signature
Parameters
The unique identifier for this input field.
The main question or label displayed to the user.
Placeholder text for the input.
Minimum allowed datetime value in
YYYY-MM-DDTHH:mm format.Maximum allowed datetime value in
YYYY-MM-DDTHH:mm format.Sets the stepping interval in seconds.
Pre-selected datetime value in
YYYY-MM-DDTHH:mm format.Examples
Use Cases
- Date Only
- Time Only
- Date and Time
Use
dateInput when time is not relevant:- Birthdays
- Start/end dates
- Date ranges
- Historical dates
- Deadlines (day level)
Format Reference
All date and time inputs follow ISO 8601 format standards.
Best Practices
Setting appropriate ranges
Setting appropriate ranges
Always set realistic
min and max values:Using step values
Using step values
Set appropriate step intervals:
- Most meetings:
"900"(15 min) or"1800"(30 min) - All-day events: Don’t set step, or use
"86400"(1 day) - Quick bookings:
"300"(5 min) - General scheduling:
"3600"(1 hour)
Clear descriptions
Clear descriptions
Help users understand the format and constraints:
Timezone considerations
Timezone considerations
Be explicit about timezone handling:Consider collecting timezone separately for datetime inputs:
Return Value
Each method returns a string containing the Forms.md markup. Submitted values:dateInput:"YYYY-MM-DD"(e.g.,"2024-03-15")timeInput:"HH:mm"(e.g.,"14:30")datetimeInput:"YYYY-MM-DDTHH:mm"(e.g.,"2024-03-15T14:30")
Related Methods
textInput
General text input for custom date formats
selectBox
Dropdown for selecting months, years, or timezones