Describe the bug
The DateTimePicker component provides the min and max props that allow you to configure specific days and hours restrictions that limit the selection one can make using the component.
Currently, the min and max limitations are applied only for the days and not for the hours meaning that if we define the following:
min: new Date(2022, 2, 1, 8, 30),
max: new Date(2022, 2, 10, 12, 30),
We will be able to select a date between 1st and 10th of March 2022 but we will also be able to select a time that is outside the defined range - for example, 18:30 on 10 March 2022.
To Reproduce
Expected behavior
Based on the definition in the max prop, the Time view in the component's popup should not display the hours and minutes that are not available for selection