Hello, I am formatting the date with the following code:
Date data = null;
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
data = format.parse(request.getParameter("txtdata"));
} catch (Exception e) {
JOptionPane.showMessageDialog(null,"Erro ao formatar data: " +e.getMessage());
}
event.setEventodata(data);
By clicking on register, in the form below:
Thefollowingerrorappears:
I'm saving this in the bank ok? The attribute type is: datetime not null ; Is there anything wrong with the conversion?