quelle ergänzt
This commit is contained in:
parent
16ab1705f0
commit
0b119f6637
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user