From caf70b89d021fc85422e3150c94c88de70030a1f Mon Sep 17 00:00:00 2001 From: seungryeol Date: Fri, 10 May 2024 17:34:40 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=EB=82=A0=EC=A7=9C=20=EC=8B=9C?= =?UTF-8?q?=EA=B0=84=20=EC=B6=9C=EB=A0=A5=20=ED=95=A8=EC=88=98=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/myveggiegarden/util/DateManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/util/DateManager.java b/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/util/DateManager.java index 4ca08b6d..41dc4d14 100644 --- a/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/util/DateManager.java +++ b/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/util/DateManager.java @@ -16,6 +16,12 @@ public String parsingDotDate(Date date){ SimpleDateFormat format = new SimpleDateFormat("yy.MM.dd"); return format.format(date); } + + + public static String parsingDotDateTime(LocalDateTime date){ + DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yy.MM.dd HH:mm"); + return date.format(formatter); + } public int calculateDay(Date startDate, Date endDate) { long differenceMillis = endDate.getTime() - startDate.getTime(); long differenceDays = differenceMillis / (1000 * 60 * 60 * 24);