I have a string input of weekdays in German and need to get the next Localdate after today which corresponds to the given weekday string. If for example the input is Montag (Monday) I need the output as Localdate of 2022-05-16 which is the next Monday after today. If the input was in english I could do something like: Is
Tag: weekday
How to get localized short day-in-week name (Mo/Tu/We/Th…)
Can I get localized short day-in-week name (Mo/Tu/We/Th/Fr/Sa/Su for English) in Java? Answer The best way is with java.text.DateFormatSymbols