My database table need to insert a time value in the format of hh:mm:ss ...
As the input source I use JTextbox. it returns me a String. (after using .toString())

I want to convert into the type of Time(hh:mm:ss) in order to store it in my database...

How can I do it??

Thankx in advance...

Don't you mean JTextField? If yes then you should use the 'getText' method. For a complete API:
JTextField

Also for the formatting:
SimpleDateFormat

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.