Did you mean a java.sql.Timestamp? If so, then yeah - as above.
If you meant that you've got a string containing the representation of a date, and you want to get hold of that date - take a look at the java doc for java.text.DateFormat and java.text.SimpleDateFormat.
You'll find lots of examples thre.
~D
> I want to send the value as a date. This is because
> in other .java file i accept this value as
> java.sql.Date as a parameter
Why do you have java.sql.Timestamp objects then?
Why not directly getting java.sql.Date object from database?
Why do your java classes use java.sql.Date instead of java.util.Date?