Please Please Help Really Urgent!! - Timestamp formatting

[b][red]This message was edited by kazer at 2005-3-12 5:47:35[/red][/b][hr]
Hi!
I need to formatt a Timestamp

I know this works to display the Date part of the Timestamp only
But my problem is I need to find the Time part of the Stamp only-

DateFormat dateOnly = DateFormat.getDateInstance(DateFormat.MEDIUM);
out.println(""+(dateOnly.format(rs.getTimestamp("StartDate" ))));
out.println(""+(dateOnly.format(rs.getTimestamp("EndDate") )));

Any ideas???
Please ;o)



Comments

  • Why not convert the timestamp into a string. Take the part of the string you wnat the time. And convert back into a int again if needed but whatever it will show the timepart of the timestamp.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion