dcsimg
<font size=3><pre>!_NEWLINE_!I want to Convert string to java.sql.time and java.sql.Time to String. !_NEWLINE_!</pre></font>
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gowthaman_Ganapathy
Posted On:   Wednesday, April 24, 2002 11:20 PM

			
I am in need to convert a String to java.sql.Time and also i want to convert from java.sql.time to String. Thanx in advance.

Re: <font size=3><pre>!_NEWLINE_!I want to Convert string to java.sql.time and java.sql.Time to String. !_NEWLINE_!</pre></font>

Posted By:   AlessandroA_Garbagnati  
Posted On:   Thursday, April 25, 2002 12:44 AM

Hi,

java.sql.Time and java.sql.Date are both subclasses of java.util.Date, so you can use the same solution (java.text.DateFormat) that you would use for that type of object. There are many FAQs and Forum messages regarding this topic.

Re: <font size=3><pre>!_NEWLINE_!I want to Convert string to java.sql.time and java.sql.Time to String. !_NEWLINE_!</pre></font>

Posted By:   shautvas_t  
Posted On:   Wednesday, April 24, 2002 11:50 PM

there are standard ways of doing this (methods in java.sql.Time). Consult apidoc for this. Or do you know this already and run into specific problems doing so???
About | Sitemap | Contact