Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.util.Date to java.sql.Date

 
Lucy Smaile
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you convert a java.util.Date to java.sql.Date? (I presume this is what you have to do to store it with preparedStatement.setDate?)
Thanks
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lucy Smaile:
How do you convert a java.util.Date to java.sql.Date? (I presume this is what you have to do to store it with preparedStatement.setDate?)
Thanks

 
Lucy Smaile
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks v much!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic