【发布时间】:2016-01-21 16:07:13
【问题描述】:
我正在尝试将以前的日期存储在 LocalDate 对象中,但我不确定如何。 到目前为止,我一直在使用自己的课程,但我想应用 java.time.LocalDate 库。 帮忙?
我的代码: LocalDate theDate = new LocalDate(theYear, theMonth, theDay);
错误信息: LocalDate theDate = new LocalDate(theYear, theMonth, theDay);
【问题讨论】:
-
请贴一些代码。
-
“日期”是什么意思?
java.util.Date? -
documentation 有问题