Ionic 6 - ion-datetime, time min and max values

Hello! In the previous versions it was possible to have a minimum and a maximum value for the time picker. For example, having a range of hours, from 7 to 12. Now I think the min and max tag applies for the date only, am I missing something? I tried to put a string like min=“2021-12-18T13:30” but it doesn’t work.

Thank you

Min and max might require seconds or even the time zone to work… Not entirely sure but try it out.

min="2021-02-25T13:30:00"
or
min="2021-02-25T13:30:00.000Z"

Thanks for your reply, I will try asap

Were you ever able to get this to work? I’m having similar issues.

No, i wasn’t. That’s why I changed completely my ui, with a select component with values provided by my api.

Check How to use the Ionic 6 Datetime component - YouTube

he use

import {format, parseISO} from 'date-fns'

to format date.
Dont try on min max properties but work with ion-datetime [value] property