Cannot convert LocalDate to Timestamp : <p>I'm trying to convert a LocalDate to Timestamp but it keeps saying: <code>valueOf(java.lang.String) in Timestamp cannot be applied to (java.time.LocalDateTime)</code></p>

<p>What I'm doing:</p>

<pre><code>LocalDate date = LocalDate.of(year, month+1, day);
Timestamp ts = Timestamp.valueOf(date.atTime(LocalTime.MIDNIGHT));
</code></pre>

<p>Year, month and day are from a DatePicker.</p>
