• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to store datetimepicker value into database

 
Mahendran Aiyappan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahhhhh take it in as a String, convert it to a date/time and persist it to the db?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!