mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

[pickers] Add a default AM or PM to the time picker

Open Gabsop opened this issue 1 year ago • 2 comments

Summary

The Time Pickers always defaults to AM when I the user selects the first value. The feature would be to add a default={"AM"} or default={"PM"} so that we can set the default to "PM" when a user is selecting a time

Examples

No response

Motivation

No response

Search keywords: timepicker

Gabsop avatar May 10 '24 14:05 Gabsop

:warning: This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@Gabsop: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

github-actions[bot] avatar May 10 '24 14:05 github-actions[bot]

Hi,

You can use the referenceDate prop to decide what date should be applied when you click on a section. For your usecase, you can just put an hour that is above 12 and it will work.

See this working example

flaviendelangle avatar May 10 '24 15:05 flaviendelangle

The issue has been inactive for 7 days and has been automatically closed.

github-actions[bot] avatar May 20 '24 15:05 github-actions[bot]