From d5a530ba235178ac289804590e26a3f75385e1aa Mon Sep 17 00:00:00 2001 From: Tomasz Gnyp <49343696+tomgny@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:19:44 +0200 Subject: [PATCH] AAE-25339 Fix ADF Datetime adapter display format date (#10274) --- lib/core/src/lib/common/utils/datetime-fns-adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/lib/common/utils/datetime-fns-adapter.ts b/lib/core/src/lib/common/utils/datetime-fns-adapter.ts index 3dff5f6e8e..c57c0b4146 100644 --- a/lib/core/src/lib/common/utils/datetime-fns-adapter.ts +++ b/lib/core/src/lib/common/utils/datetime-fns-adapter.ts @@ -126,7 +126,7 @@ export class AdfDateTimeFnsAdapter extends DatetimeAdapter { } override parse(value: any, parseFormat: any): Date { - const dateToParse = isValid(new Date(value)) ? parse(value, this.displayFormat, new Date()) : value; + const dateToParse = isValid(new Date(value)) ? parse(value, this.displayFormat ?? parseFormat, new Date()) : value; return this._delegate.parse(dateToParse, parseFormat); }