From 9fc4c970f61b78a8d95b03ca0910493e3b2c7bb4 Mon Sep 17 00:00:00 2001 From: SheenaMalhotra182 Date: Fri, 22 Sep 2023 22:08:56 +0530 Subject: [PATCH] [ACS-5857] fixed date parsing and linting --- .../src/lib/form/components/widgets/date/date-cloud.widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/process-services-cloud/src/lib/form/components/widgets/date/date-cloud.widget.ts b/lib/process-services-cloud/src/lib/form/components/widgets/date/date-cloud.widget.ts index a8a9d292bd..10fd714b6b 100644 --- a/lib/process-services-cloud/src/lib/form/components/widgets/date/date-cloud.widget.ts +++ b/lib/process-services-cloud/src/lib/form/components/widgets/date/date-cloud.widget.ts @@ -102,7 +102,7 @@ export class DateCloudWidgetComponent extends WidgetComponent implements OnInit, } onDateChanged(newDateValue) { - const date = new Date(newDateValue); + const date = this.dateFormatTranslationService.parse(newDateValue, this.field.dateDisplayFormat, new Date()); if (isValid(date)) { this.field.value = this.dateFormatTranslationService.format(date, this.field.dateDisplayFormat); } else {