Skip to content

[pickers][DateTimeRangePicker] two referenceDate props to have a different default time #17510

@yoshegg

Description

@yoshegg

Summary

Currently, DateTimeRangePicker has only one referenceDate prop that allows setting a default time when selecting two dates.

In my opinion it should be possible two define two referenceDates, so that a different end time for the second date can be chosen.

Examples

A car rental company opens at 8 am and closes at 5 pm. So the default starting time would be 8:00 and the default ending time would be 17:00.

Motivation

No response

Search keywords: DateTimeRangePicker referenceDate

Order ID: 95669

Metadata

Metadata

Assignees

Labels

scope: pickersChanges related to the date/time pickers.support: premium standardSupport request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.type: new featureExpand the scope of the product to solve a new problem.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions