Hi all,
 
I have a query...not really sure whether I can put this in this forum..but if you know the answer, please send it to me...
 
I use the ResultSet class to store the result from the database query. One of the column in the database is a Date. I use the getDate() method of the ResultSet class and retrieve the Date object and store it in java.sql.Date object. If I use the Date.getYear(), it returns only the last 2 digits of the date and not the four digits...How to solve this problem. The new Calender class does not provide any method to retrieve the year alone...can anyone help?
 
regards
Aditya.

Reply via email to