Data e Hora

Pessoal, estou com o seguinte problema:
Batch/svrSGBL_jclient3.java [343:1] unreported exception java.text.ParseException; must be caught or declared to be thrown
Date d1 = sdf.parse(“01/01/2004 12:56”);
^
Batch/svrSGBL_jclient3.java [344:1] unreported exception java.text.ParseException; must be caught or declared to be thrown
Date d2 = sdf.parse(telacorebatch.sgbl_confirmado);

alguém pode me ajudar?

Tenta colocar esse teu trecho de código dentro de um try/catch

Ou coloca esse método dando um ‘throws java.text.ParseException’

[]s

OK, funcionou perfeitamente.

Muito obrigado.