From 4c00ada5e8d0a8fe182c3cc66fdf74b45e88a728 Mon Sep 17 00:00:00 2001 From: Radheshhathwar <radheshhathwar.bh@gmail.com> Date: Tue, 29 Aug 2023 14:31:44 +0530 Subject: [PATCH] Changes the date format --- .../upsmf/userManagement/services/impl/PaymentServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java b/src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java index 2616584..d236bf0 100644 --- a/src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java +++ b/src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java @@ -121,7 +121,7 @@ public class PaymentServiceImpl implements PaymentService { Date transactionDate = null; try { String date = requestData.get("Transaction Date") != null ? requestData.get("Transaction Date") : ""; - DateFormat format = new SimpleDateFormat("MMMM d, yyyy", Locale.ENGLISH); + DateFormat format = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss"); transactionDate = format.parse(date); } catch (ParseException e) { logger.error("parsing date failed.",e); -- GitLab