From 70821917b1b8be341de7cc5c9bde4870c4ac89d5 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 acef08e948..c3f4b17b7d 100644 --- a/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx +++ b/app/views/PillarAnalysis/AnalyticalStatementInput/StoryAnalysisModal/index.tsx @@ -29,7 +29,7 @@ import { } from '@the-deep/deep-ui'; import { isDefined, - encodeDate, + formatDateToString, _cs, unique, listToGroupList, @@ -119,7 +119,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 {