The DateTime component allows users to select dates and optionally times.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/gradio-app/gradio/llms.txt
Use this file to discover all available pages before exploring further.
Basic usage
Constructor
Default datetime value
Whether to include time selection. If False, only date is selectable
Return format:
"timestamp"- Unix timestamp (seconds since epoch)"datetime"- Python datetime object"string"- Formatted string
Timezone (e.g., “US/Pacific”, “Europe/Paris”). If None, uses local timezone
Label displayed above component
Whether datetime can be changed
Events
- change - Triggered when datetime changes
- submit - Triggered when datetime is submitted