Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Has anyone experiences on passing a value from JDateChooser to Derby?  RSS feed

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
com.toedter.calendar.JDateChooser

I need to retrieve a value from JDateChooser
to Derby and take a round trip back to the JTextField
Any ideas
Thanks
Jack
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what are you having problems with? Retrieving the value from the JDateChooser , communicating to DB code or inserting into DB?
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:So what are you having problems with? Retrieving the value from the JDateChooser , communicating to DB code or inserting into DB?


Thanks
I don't know the protocol actually
It should be
java.sql.Date.valueOf('2013-10-22');

Jack
 
Campbell Ritchie
Sheriff
Posts: 53769
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why should it be 2013-10-22? Why are you not simply passing the Date object to the JDBC link? What do you know about JDBC?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!