From f1fabad17d55904206a1aacbf519fb857577e085 Mon Sep 17 00:00:00 2001 From: pbd2h21avi Date: Wed, 1 Feb 2023 15:19:12 +0100 Subject: [PATCH] Java Doc --- src/GeneralMethods.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GeneralMethods.java b/src/GeneralMethods.java index 75e1239..df3260b 100644 --- a/src/GeneralMethods.java +++ b/src/GeneralMethods.java @@ -19,7 +19,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 + //https://stackoverflow.com/questions/8746084/string-to-localdate 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); @@ -32,7 +32,7 @@ public class GeneralMethods { * The method getDayName() gets the weekday * * @param dayNumber dayNumber e.g. 1 for Monday - * @return weekday + * @return String weekday * @author Madeleine Vigier */ public static String getDayName(int dayNumber) {