quelle ergänzt
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user