Well, that's it, I have a date, which the user types in a spinner, how can I save that in a LocalDate, which is how I keep the date of birth variable? thanks.
Well, that's it, I have a date, which the user types in a spinner, how can I save that in a LocalDate, which is how I keep the date of birth variable? thanks.
Date date = (Date) jSpinner1.getValue ();
LocalDate date = Instant.ofEpochMilli (date.getTime ()). atZone (ZoneId.systemDefault ()). toLocalDate ();