I have a Table View, which receives the data from a table in my Bank, until then I was able to bring the data normally, but the date is coming different from the one registered at the bank,
For example:
The bank is: 2018-09-06 In my TableView returns: 2018-09-05
What could be causing this error?
Some data on how I am declaring the date:
import java.util.Date;
private Date datavisita;
public Date getDatavisita() {
return datavisita;
}
public void setDatavisita(Date datavisita) {
this.datavisita = datavisita;
}
//metodo para filtrar a data:
v.setDatavisita(rs.getDate(“datavisita”));
//declaração da coluna data
@FXML
TableColumn<VW_Visitas_Sonho, Date> colData;
// configurar as colunas de acordo com o objeto VW_Visitas_Sonho
colData.setCellValueFactory(new PropertyValueFactory<>(“datavisita”));