I wish to remove the Joda-Time library from my project.
I am trying to convert a two digit year to full year. The following code from Joda-Time can fulfil the purpos
You can't create a LocalDate because the String you give doesn't provide the information needed to fill all required fields.
LocalDate
String
You can create a Year though
Year
Year parsed = Year.parse("99", TWO_YEAR_FORMATTER); int year = parsed.getValue();