-2

i need help to input a date using java

Perfil p = new Perfil();
p.setData_nascimento(request.getParameter("data_nascimento"));

i got error

The method setData_nascimento(Date) in the type Perfil is not applicable for the arguments (String)

how can i set a date parameter?

BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513

0 Answers0