[pickers][DateTimeRangePicker] Issue with setting initial time values #15405
Labels
bug 🐛
Something doesn't work
component: DateTimeRangePicker
The React component
component: pickers
This is the name of the generic UI component, not the React module!
support: pro standard
Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Steps:
Current behavior
When I select the start date, the initial time is 00:00.
Expected behavior
The initial time should be 08:00
Context
I am working on a form that defines the work schedule for an employee using the MUI DateTime Range Picker. Typically, employees have fixed working hours, so we’d like to set default start and end times (e.g., 8:00 AM and 5:00 PM) when the date range is selected. However, we currently cannot set initial time values using the referenceDate prop.
Expected Behavior:
Ideally, I’d like to be able to specify default time values for the start and end of the date range. For instance:
Start Date: default time set to 8:00 AM.
End Date: default time set to 5:00 PM.
These defaults would pre-fill as initial times when the user selects a date range, reducing repetitive inputs. However, adjusting these initial times through the referenceDate prop is currently unsupported.
Your environment
No response
Search keywords: DateTimeRangePicker referenceDate
Order ID: 89609
The text was updated successfully, but these errors were encountered: