Re: Problem with a DA class
Do a few System.out.println statements throughout your program and find out exactly WHERE this date is being set to an unreal year. I highly doubt putting it into the database will cause this error. I'm guessing you are doing some calculations and constructing the date elsewhere in your program, which is where the problem is probably occuring.
Re: Problem with a DA class
Quote:
Originally Posted by System_Error
Do a few System.out.println statements throughout your program and find out exactly WHERE this date is being set to an unreal year. I highly doubt putting it into the database will cause this error. I'm guessing you are doing some calculations and constructing the date elsewhere in your program, which is where the problem is probably occuring.
:thumb: I agree with "System_Error".
Another thing, if you are using an IDE it'd be a good idea to use breakpoints and trace the date value.
Re: Problem with a DA class
It would be an even better idea to use prepared statements and forget about formatting the dates yourself.