quelle ergänzt

This commit is contained in:
Madeleine Vigier 2022-12-18 07:53:31 +01:00
parent 16ab1705f0
commit 0b119f6637

View File

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