wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Joining two String having date and time into timestamp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Joining two String having date and time into timestamp" Watch "Joining two String having date and time into timestamp" New topic
Author

Joining two String having date and time into timestamp

Mahendran Aiyappan
Ranch Hand

Joined: Sep 05, 2005
Posts: 102
Hi guys,

I am having two datepickers one is for Date(java.sql.Date) and another is for Time(String). I want to append these two fields and convert it into Timestamp which can be stored in the database.

Please give me your suggestions.

Thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38057
    
  22
Go through the JDBC forum. I think there have been answers to similar questions in the last week or two.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Joining two String having date and time into timestamp
 
Similar Threads
change data type from string to timestamp
URGENT- NullProinter while creating new record
Date/Time addition losing 1 hour !
TimeStamp.toString() does not work as expected
stupid DateFormat problem