Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes How to store datetimepicker value into database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to store datetimepicker value into database" Watch "How to store datetimepicker value into database" New topic
Author

How to store datetimepicker value into database

Mahendran Aiyappan
Ranch Hand

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

I have the following code


If you note it is having two datetimepicker one for Date and one for Time.
I am having a bean schedule.startTime is a Timestamp. I need to store in the table. I never used datetimepicker before.

Give me your suggestions.

Thanks
Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
Ahhhhh take it in as a String, convert it to a date/time and persist it to the db?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to store datetimepicker value into database