3
I need to convert a resultSet of the returning bank in Timestamp in a Calendar type variable.
3
I need to convert a resultSet of the returning bank in Timestamp in a Calendar type variable.
4
It is possible in Calendar you inform the team, which receives an instance of Date.
Like Timestamp is subclass of Date, you can do something like this:
public static Calendar timestampToCalendar(final Timestamp timestamp) {
    final Calendar cal = Calendar.getInstance();
    cal.setTime(timestamp);
    return cal;
}
							Browser other questions tagged java type-conversion calendar timestamp resultset
You are not signed in. Login or sign up in order to post.