diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index a874ea955dd..85d2006053d 100644 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -2688,6 +2688,10 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor { toggleAMPMIfNotMinDate(newPM: boolean) { let value = this.value; + + if (this.selectionMode === 'range' && Array.isArray(value) && value.length > 0) { + value = value[value.length - 1]; + } const valueDateString = value ? value.toDateString() : null; let isMinDate = this.minDate && valueDateString && this.minDate.toDateString() === valueDateString; if (isMinDate && this.minDate.getHours() >= 12) {