3
I’m a beginner in java and I’m having doubts about converting String to Date. I already spent hours searching the internet to see if I could find a solution and I came across very few solutions but when I was going to put these solutions to run, my application always generated error!
private boolean salvarPessoa(){
pessoa.setNome(this.txtNome.getText());
pessoa.setBairro(this.txtBairro.getText());
pessoa.setEndereco(this.txtEndereco.getText());
pessoa.setCidade(this.txtCidade.getText());
pessoa.setUf(this.txtUF.getText());
pessoa.setCPF(this.txtCPF.getText());
pessoa.setTelefone(this.txtTelefone.getText());
pessoa.setdNascimento(this.txtdNascimento.getText());// <- O erro esta aqui!
I think there’s a hundreds questions like this.
– Maniero
What is the format of the date string? And as @bigown said, what else is on Sopt are questions about date formatting, like this, this, etc. Just read the documentation and find out the format you need.
– Bruno César
Format: day, month and year. I have read more I know almost nothing of the English vocabulary and I can not even read in English.
– Igor Contini