mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
3.88k stars 1.17k forks source link

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

Closed Gabsop closed 3 weeks ago

Gabsop commented 1 month ago

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

github-actions[bot] commented 1 month ago

: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.

flaviendelangle commented 1 month ago

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

github-actions[bot] commented 3 weeks ago

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