Retrieve Date information from table with Timestamp and convert into 24hr format string

82 Views Asked by At

I am having a field like this in my database table Jan 1 1900 10:22PM . I am getting it out like this result.setEndingDate(rs.getDate("end_tm")); . when i do an sysout the output is displayed in the console as 1900-01-01 . What can i do to get Time stamp and also to conver it into 24 hour format .My output String String should be somehting like this 22:10 . how can i proceed to achieve this

0

There are 0 best solutions below