From 312a514122f44c4cfae2df367290099fdb2a90eb Mon Sep 17 00:00:00 2001
From: brahmanand1 <44412993+brahmanand1@users.noreply.github.com>
Date: Mon, 23 Sep 2024 10:36:13 +0530
Subject: [PATCH] DTS-39590 remove time from start and end date

---
 UI/src/app/dashboard/filter/filter.component.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/UI/src/app/dashboard/filter/filter.component.ts b/UI/src/app/dashboard/filter/filter.component.ts
index c299dfcf0f..ae56575a86 100644
--- a/UI/src/app/dashboard/filter/filter.component.ts
+++ b/UI/src/app/dashboard/filter/filter.component.ts
@@ -1250,9 +1250,9 @@ export class FilterComponent implements OnInit, OnDestroy {
       if (obj) {
         let d;
         if (type == 'start') {
-          d = new Date(obj[startDateField]);
+          d = new Date(obj[startDateField].split('T')[0]);
         } else {
-          d = new Date(obj[endDateField]);
+          d = new Date(obj[endDateField].split('T')[0]);
         }
         dateString = [this.pad(d.getDate()), this.pad(monthNames[d.getMonth()]), d.getFullYear()].join('/');
       }