So I have a field of type Date, is there a way I can convert this into LocalDateTime in its getter method? What I have so far is..
private Date date;
public getDate(){
return date == null ? null : LocalDateTime.of(date) }
But it doesnt seem to work.