for example :
.
.
.
Calendar cld = Calendar.getInstance();
Timestamp geldegtar = rs.getTimestamp(new String(myDate));
if (geldegtar == null)
{
Calendar rightNow = Calendar.getInstance();
rightNow.set(1900, 0, 0);
java.util.Date mydate = rightNow.getTime();
long long_mydate = mydate.getTime();
geldegtar = new java.sql.Timestamp(long_mydate);
}
d = new Date(geldegtar.getTime() + (geldegtar.getNanos() /
1000000));
cld.setTime(d);
and then just use cld...
for axample;
int isaat = cld.get(Calendar.HOUR_OF_DAY);
int idak = cld.get(Calendar.MINUTE);
int isaniye = cld.get(Calendar.SECOND);
.
.