Skip to content
Advertisement

Tag: localdate

String input of weekdays in German to Localdate

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

make picocli parse local date format

PicoCLI accepts 2019-04-26 as input for a LocalDate variable, but it does not accept the German Date format like 26.04.2019. For that you need: How do you tell to PicoCLI to use this formatter and not depend on US date input? Answer You can define a custom type converter, either for a specific option, or globally for all options and

Advertisement