From e32f9fe786dd435013ac8ff466e9dc55ecb9de17 Mon Sep 17 00:00:00 2001 From: shreeyash07 Date: Thu, 8 Aug 2024 14:05:42 +0545 Subject: [PATCH] Update date format for generate anlysis date --- .../AnalyticalStatementInput/StoryAnalysisModal/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx b/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx index 9f307a893..af138936d 100644 --- a/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx +++ b/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx @@ -30,7 +30,7 @@ import { } from '@the-deep/deep-ui'; import { isDefined, - encodeDate, + formatDateToString, _cs, unique, listToGroupList, @@ -120,7 +120,8 @@ function generateReportText(entry: Entry) { const entryCreatedDate = new Date(entry.lead.publishedOn); - return `${entryText}([${organizations}](${url}), ${encodeDate(entryCreatedDate)}).`; + const formattedDate = formatDateToString(entryCreatedDate, 'dd/MM/yyyy'); + return `${entryText}([${organizations}](${url}), ${formattedDate}).`; } interface Props {