📜  java代码示例中的字符串到localdate

📅  最后修改于: 2022-03-11 14:52:49.046000             🧑  作者: Mango

代码示例3
Date yourDate = new Date(); // this will be your java.util.Date instance to convert
LocalDate date = yourDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();