From f513bd5eb416d861bd2f07e3124f0ab89a101895 Mon Sep 17 00:00:00 2001 From: khanjan Date: Fri, 3 May 2024 13:46:42 +0530 Subject: [PATCH] Change in the Ending Criteria date format and Created On date format to Month-Day-Year --- .../upgrade/src/app/shared/pipes/format-date.pipe.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/projects/upgrade/src/app/shared/pipes/format-date.pipe.ts b/frontend/projects/upgrade/src/app/shared/pipes/format-date.pipe.ts index b848d2947e..a6654f6dc9 100644 --- a/frontend/projects/upgrade/src/app/shared/pipes/format-date.pipe.ts +++ b/frontend/projects/upgrade/src/app/shared/pipes/format-date.pipe.ts @@ -27,20 +27,22 @@ export class FormatDatePipe implements PipeTransform { if (type === DateType.MEDIUM_DATE) { return ( - dateNumber + - this.getSuffix(dateNumber) + - ' ' + months[experimentDate.getMonth()] + ' ' + + dateNumber + + this.getSuffix(dateNumber) + + ' ' + + experimentDate.getFullYear() ); } else { return ( + months[experimentDate.getMonth()].substring(0, 3) + + ' ' + dateNumber + this.getSuffix(dateNumber) + - ' ' + - months[experimentDate.getMonth()].substring(0, 3) + ', ' + + (dateHours < 10 || dateHours === 12 ? '0' : '') + (dateHours < 12 ? dateHours : dateHours - 12) + ':' +