droc101 · GitHub

…aints
expose new `getClosestDate(date: Date) => Promise<Date>` function in the Datetime class and use it in DatetimeButton to round the current time (default value) into a date that matches the constraints provided on the Datetime element (dayValues, minuteValues, etc.)
closes ionic-team#30183

@droc101

@droc101

@vercel

@droc101

@vercel

thetaPC

…method returning datetime's defaultParts

@droc101

@vercel

- should default to exact current time with no constraints
- should obey minuteValues constraint
- should obey hourValues constraint
- should obey monthValues constraint

@vercel

@droc101

@vercel

@droc101

thetaPC

@droc101 droc101 changed the title fix(datetime-button): fix initial text not obeying datetime constraints fix(datetime-button): respect datetime constraints in initial text

Jun 24, 2026

@droc101

@droc101

@droc101

thetaPC

…n componentWillLoad
…f other tests

@droc101

@thetaPC

Read the original on github.com ↗