I want to parse a date which only consists of date and month information, without a year. The resulting date should be set to the current year.
The input for example will be something like "11. November".
My idea was to use something like this:
DateTimeFormatter.ofPattern("EEEE dd. MMMM");
But in the resulting date the year is set to 1970 which makes sense.
Is there a way of setting the omitted year to a certain value within DateTimeFormatter
?