Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a date type variable with a datetime type database field

Status
Not open for further replies.

joemaur

Programmer
Feb 24, 2002
17
BR
Hello people,

I'm getting some problems when I try to set a date type variable with the value of a datetime type database field.

Here´s the code:

Calendar cal = Calendar.getInstance;

Date DtAux = rsCParticip.getDate("DtInclusao", cal);

The error that is occuring is "No data found". I looked for an example in Internet and found a code that is implemented in the same way. Could someone tell me what's wrong?

Thanks for any help.

José Maurício Fernandes Ferreira
Web Development - S_Line Support
josemaurico@svr.com.br
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top