I am writing a
servlet which takes a value for a particular time from a database. This time is in the form of msec since epoch. What I want to do is convert this to the time of day for display in an html document. I have managed to return the full date/time value in html (i.e. including day, date, year, timezone), but all I actually want is the time of day, not the day/date/year etc. So, for example, I can create an html document with:
"Sun Jul 02 23:00:00 GMT+01:00 2001"
When all I actually want to display is:
"23:00"
Can anyone help me? Some sample code would be really useful.
Thanks in advance,
James