| Author |
convert SQL TimeStamp to String
|
shabarish vai
Ranch Hand
Joined: May 26, 2008
Posts: 79
|
|
how do i convert SQL TimeStamp to String 22-05-20-2008 14:04:59:612
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32830
|
|
|
Go through the API documentation and look for the toString method, as a first stage.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
java.sql.Timestamp is a subclass of java.util.Date, so you can use java.text.DateFormat for formatting it.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: convert SQL TimeStamp to String
|
|
|