diff --git a/core/src/components/datetime/datetime.tsx b/core/src/components/datetime/datetime.tsx index 36282c8720..bc5afd0e0b 100644 --- a/core/src/components/datetime/datetime.tsx +++ b/core/src/components/datetime/datetime.tsx @@ -1169,7 +1169,7 @@ export class Datetime implements ComponentInterface { private processValue = (value?: string | string[] | null) => { const hasValue = value !== '' && value !== null && value !== undefined; - let valueToProcess = hasValue ? parseDate(value) : this.defaultParts; + const valueToProcess = hasValue ? parseDate(value) : this.defaultParts; const { minParts, maxParts } = this;