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);