From 0b119f66376a7d79f89627429f4d22c58058cc97 Mon Sep 17 00:00:00 2001 From: pbd2h21avi Date: Sun, 18 Dec 2022 07:53:31 +0100 Subject: [PATCH] =?UTF-8?q?quelle=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/GeneralMethods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GeneralMethods.java b/src/GeneralMethods.java index c38599b..9dda686 100644 --- a/src/GeneralMethods.java +++ b/src/GeneralMethods.java @@ -28,7 +28,7 @@ public class GeneralMethods { * @author Madeleine Vigier */ public static String getDayNumberNew(String dateString) { - + //https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy"); formatter = formatter.withLocale(Locale.GERMANY); // Locale specifies human language for translating, and cultural norms for lowercase/uppercase and abbreviations and such. Example: Locale.US or Locale.CANADA_FRENCH LocalDate date = LocalDate.parse(dateString, formatter);