Back
I want to convert java.time.LocalDate into java.util.Datetype. Because I want to set the date into JDateChooser. Or is there any date chooser that supports java.time dates?
Try:
Date date = Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant());
This feigns your date chooser accepts the system default timezone to convert dates toward strings.
31k questions
32.8k answers
501 comments
693 users